/* ============================================================
   产品界面展示组件 (Product Shots)
   风格：与官网深色主题一致，纯 CSS 高保真还原软件界面
   ============================================================ */

.product-shots {
  padding: 80px 0;
  background: var(--md-sys-color-surface, #1E1E1E);
}

.product-shots__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.product-shots__intro h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 12px;
}

.product-shots__intro p {
  font-size: 16px;
  color: var(--text-secondary, #AAAAAA);
  line-height: 1.6;
}

/* ---------- 单个产品画面卡片 ---------- */
.shot-card {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.shot-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shot-card:last-child {
  margin-bottom: 0;
}

.shot-card__caption {
  margin-top: 16px;
  text-align: center;
}

.shot-card__caption h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 4px;
}

.shot-card__caption p {
  font-size: 13px;
  color: var(--text-secondary, #AAAAAA);
}

/* ---------- 浏览器/窗口外壳 ---------- */
.window-frame {
  background: #252526;
  border: 1px solid #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #2D2D2D;
  border-bottom: 1px solid #333333;
}

.window-titlebar__dots {
  display: flex;
  gap: 6px;
}

.window-titlebar__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.window-titlebar__dots span:nth-child(1) { background: #FF5F57; }
.window-titlebar__dots span:nth-child(2) { background: #FEBC2E; }
.window-titlebar__dots span:nth-child(3) { background: #28C840; }

.window-titlebar__title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #888888;
  font-family: 'Segoe UI', sans-serif;
}

/* ============================================================
   1. 密码验证弹窗 (Password Dialog)
   ============================================================ */
.pwd-dialog-overlay {
  background: #1E1E1E;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.pwd-dialog {
  width: 100%;
  max-width: 380px;
  background: #252526;
  border: 1px solid #333333;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.pwd-dialog__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #2D2D2D;
  border-bottom: 1px solid #333333;
}

.pwd-dialog__header svg {
  width: 16px;
  height: 16px;
  stroke: #2196F3;
}

.pwd-dialog__title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #E0E0E0;
  font-family: 'Segoe UI', sans-serif;
}

.pwd-dialog__close {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 16px;
  cursor: default;
}

.pwd-dialog__body {
  padding: 24px 20px;
}

.pwd-dialog__label {
  font-size: 12px;
  color: #AAAAAA;
  margin-bottom: 8px;
  font-family: 'Segoe UI', sans-serif;
}

.pwd-dialog__input-wrap {
  position: relative;
}

.pwd-dialog__input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  background: #1E1E1E;
  border: 1px solid #333333;
  border-radius: 4px;
  color: #E0E0E0;
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
  outline: none;
  box-sizing: border-box;
}

.pwd-dialog__input:focus {
  border-color: #2196F3;
}

.pwd-dialog__eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
}

.pwd-dialog__eye svg {
  width: 16px;
  height: 16px;
}

.pwd-dialog__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 20px 20px;
}

.pwd-dialog__btn {
  padding: 7px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Segoe UI', sans-serif;
  cursor: default;
  border: none;
}

.pwd-dialog__btn--primary {
  background: #2196F3;
  color: #FFFFFF;
}

.pwd-dialog__btn--cancel {
  background: #3C3C3C;
  color: #CCCCCC;
}

/* ============================================================
   2. 设置窗口 (Settings Window)
   ============================================================ */
.settings-window {
  display: flex;
  min-height: 420px;
}

/* 左侧导航 */
.settings-nav {
  width: 170px;
  background: #2D2D2D;
  padding: 12px 0;
  flex-shrink: 0;
  border-right: 1px solid #333333;
}

.settings-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: #AAAAAA;
  font-family: 'Segoe UI', sans-serif;
  cursor: default;
}

.settings-nav__item svg {
  width: 14px;
  height: 14px;
  stroke: #888888;
  flex-shrink: 0;
}

.settings-nav__item--active {
  background: rgba(33, 150, 243, 0.12);
  color: #FFFFFF;
  border-left: 3px solid #2196F3;
}

.settings-nav__item--active svg {
  stroke: #2196F3;
}

/* 右侧内容 */
.settings-content {
  flex: 1;
  padding: 20px 24px;
  overflow: hidden;
}

.settings-content__title {
  font-size: 14px;
  font-weight: 600;
  color: #E0E0E0;
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-family: 'Segoe UI', sans-serif;
}

.settings-row__label {
  font-size: 12px;
  color: #CCCCCC;
}

/* 复选框 */
.checkbox {
  width: 15px;
  height: 15px;
  border: 1.5px solid #666666;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
}

.checkbox--checked {
  background: #2196F3;
  border-color: #2196F3;
}

.checkbox--checked::after {
  content: '';
  width: 4px;
  height: 7px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

/* 下拉框 */
.select-box {
  padding: 4px 10px;
  background: #1E1E1E;
  border: 1px solid #333333;
  border-radius: 3px;
  font-size: 12px;
  color: #E0E0E0;
  font-family: 'Segoe UI', sans-serif;
  min-width: 110px;
  text-align: right;
}

/* 数值输入 */
.num-input {
  width: 56px;
  padding: 4px 8px;
  background: #1E1E1E;
  border: 1px solid #333333;
  border-radius: 3px;
  font-size: 12px;
  color: #E0E0E0;
  font-family: 'Segoe UI', sans-serif;
  text-align: right;
}

/* 分组标题 */
.settings-group-title {
  font-size: 11px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 8px;
  font-family: 'Segoe UI', sans-serif;
}

/* 底部按钮 */
.settings-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid #333333;
}

/* ============================================================
   3. 记录查看器 (Viewer Window)
   ============================================================ */
.viewer-window {
  display: flex;
  min-height: 380px;
}

.viewer-sidebar {
  width: 180px;
  background: #2D2D2D;
  border-right: 1px solid #333333;
  padding: 12px 0;
  flex-shrink: 0;
  overflow: hidden;
}

.viewer-sidebar__title {
  font-size: 11px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 14px 8px;
  font-family: 'Segoe UI', sans-serif;
}

.viewer-file {
  padding: 7px 14px;
  font-size: 11px;
  color: #AAAAAA;
  font-family: 'Segoe UI', sans-serif;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.viewer-file--active {
  background: rgba(33, 150, 243, 0.12);
  color: #E0E0E0;
  border-left: 3px solid #2196F3;
}

.viewer-file__size {
  font-size: 10px;
  color: #666666;
}

.viewer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.viewer-screen {
  flex: 1;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

/* 截图缩略图网格（模拟录制的画面） */
.viewer-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.viewer-thumb {
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.viewer-thumb::after {
  content: attr(data-time);
  position: absolute;
  bottom: 2px;
  left: 3px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Segoe UI', sans-serif;
}

/* 底部播放控制栏 */
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #252526;
  border-top: 1px solid #333333;
}

.viewer-controls__btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AAAAAA;
  cursor: default;
  border-radius: 3px;
}

.viewer-controls__btn:hover {
  background: #333333;
}

.viewer-controls__btn svg {
  width: 14px;
  height: 14px;
}

.viewer-controls__speed {
  font-size: 11px;
  color: #AAAAAA;
  padding: 0 6px;
  font-family: 'Segoe UI', sans-serif;
}

.viewer-controls__spacer {
  flex: 1;
}

.viewer-controls__export {
  padding: 5px 14px;
  background: #2196F3;
  color: #FFFFFF;
  font-size: 11px;
  border-radius: 3px;
  font-family: 'Segoe UI', sans-serif;
  cursor: default;
}

/* 时间轴 */
.viewer-timeline {
  height: 4px;
  background: #333333;
  position: relative;
  margin: 0 12px;
}

.viewer-timeline__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 35%;
  background: #2196F3;
  border-radius: 2px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .product-shots {
    padding: 56px 0;
  }

  .product-shots__intro h2 {
    font-size: 24px;
  }

  .settings-window,
  .viewer-window {
    min-height: auto;
  }

  .settings-nav,
  .viewer-sidebar {
    width: 120px;
  }

  .settings-nav__item,
  .viewer-file {
    font-size: 11px;
    padding: 6px 10px;
  }

  .settings-content {
    padding: 14px;
  }

  .pwd-dialog-overlay {
    padding: 20px;
    min-height: 240px;
  }
}
