/* ==================================================
 * styles_v2.css —— Hero 左右版（对比稿）专用样式
 * 仅覆盖 Hero 区，其余板块沿用 styles.css
 * ================================================== */

/* Hero 容器：撑到更宽，容纳左右两栏 */
.hero .hero-content {
  max-width: 1260px;
  width: 100%;
  padding: 70px 40px 80px;
}

/* 左右两栏 grid：左文本、右 popup-mock */
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

/* 左侧文本列：全部左对齐 */
.hero .hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero .hero-text .hero-title {
  white-space: nowrap;
  text-align: left;
  font-size: 60px;
  line-height: 1.15;
  margin: 0;
}

.hero .hero-text .hero-subtitle {
  text-align: left;
  margin: 16px 0 0;
  color: var(--text-muted);
}

.hero .hero-text .hero-actions {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* 三个下载入口收缩到自适应内容宽度，尽量单行放下 */
.hero .hero-text .hero-actions .btn,
.hero .hero-text .hero-actions .btn.btn-outline {
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
}

/* Chrome 按钮下 hint 与按钮紧贴（gap 1px） */
.hero .hero-text .hero-actions .btn-wrapper {
  gap: 1px;
}

.hero .hero-text .hero-version {
  text-align: left;
  margin: 0;
}

/* 右侧列：popup-mock 靠右贴近屏幕边缘 */
.hero .hero-visual {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* 中屏及以下：回归上下堆叠 */
@media (max-width: 960px) {
  .hero .hero-content {
    padding: 72px 24px 64px;
  }
  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero .hero-text .hero-title,
  .hero .hero-text .hero-subtitle,
  .hero .hero-text .hero-version {
    text-align: center;
  }
  .hero .hero-text .hero-actions {
    justify-content: center;
  }
  .hero .hero-text .hero-title {
    font-size: 40px;
  }
  /* 中屏及以下：popup-mock 回归居中 */
  .hero .hero-visual {
    justify-content: center;
  }
  .popup-mock-wrapper {
    margin: 0 auto;
  }
}

/* ==================================================
 * popup-mock（复刻插件真身：静态日历 + 静态倒计时 + 搬砖动画）
 * ================================================== */

/* wrapper 承接缩放后实际显示尺寸（transform 不影响 layout，所以外壳必须显式设定） */
.popup-mock-wrapper {
  width: 574px;   /* 700 × 0.82 */
  height: 344px;  /* 420 × 0.82 */
  position: relative;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 外壳：保持插件 700×420 原始尺寸，缩放 0.82 适配 Hero 右列 */
.popup-mock {
  position: absolute;
  top: 0;
  left: 50%;
  width: 700px;
  height: 420px;
  margin-left: -350px;
  transform: scale(0.82);
  transform-origin: top center;
  border-radius: 20px;  /* 缩放后视觉圆角 ~16px */
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(255, 149, 0, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  user-select: none;
}

.popup-mock-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  background: white;
}

/* ============ 左侧日历窗口 ============ */
.pm-calendar-window {
  width: 440px;
  height: 420px;
  background: white;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #f0f0f0;
  overflow: hidden;
}

.pm-calendar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  gap: 4px;
  flex-shrink: 0;
}

.pm-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pm-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.pm-year-month {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  white-space: nowrap;
}

.pm-nav-btn,
.pm-today-btn,
.pm-settings-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  padding: 0;
  cursor: pointer;
  pointer-events: none; /* 不可交互，点击穿透到外层 popup-mock */
}

.pm-today-btn {
  background: #ff9500;
  color: white;
  font-size: 12px;
  padding: 0 8px;
  width: auto;
  min-width: 28px;
}

.pm-settings-btn svg {
  color: #666;
}

/* 日期表格 */
.pm-calendar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.pm-weekday {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 2px 0;
  font-weight: 500;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-weekday.pm-weekend {
  color: #ff6b6b;
}

.pm-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.pm-date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  position: relative;
  padding: 2px;
  min-height: 0;
  background: white;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.pm-date-cell.pm-today {
  background: #fff3e0;
}

.pm-date-cell.pm-other-month {
  opacity: 0.4;
}

.pm-date-cell.pm-weekend .pm-date-number {
  color: #ff6b6b;
}

.pm-date-number {
  font-size: 18px;
  color: #111827;
  font-weight: 600;
  line-height: 1.5rem;
  margin: 0;
}

.pm-lunar-date {
  font-size: 11px;
  color: #4b5563;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}

/* 底部倒计时 */
.pm-calendar-footer {
  text-align: left;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============ 右侧倒计时窗口 ============ */
.pm-feature-window {
  width: 260px;
  height: 420px;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b6b 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pm-feature-window::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.pm-countdown-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.pm-quit-countdown {
  text-align: center;
  width: 100%;
}

.pm-quit-header {
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.pm-quit-text {
  display: inline;
  vertical-align: middle;
  font-size: 16px;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pm-boss-mode-btn {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.pm-boss-mode-btn svg {
  color: white;
  stroke: white;
  fill: none;
  width: 16px;
  height: 16px;
}

/* 下班倒计时圆盘 */
.pm-work-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: -15px;
}

.pm-countdown-circle-container {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -15px 0 0 0;
}

.pm-horse-mill-container {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 35px;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

#pmHorseMillCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pm-countdown-circle {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: -25px;
}

.pm-countdown-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 2px;
}

.pm-countdown-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.pm-countdown-time {
  font-size: 24px;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 2px 0;
}

.pm-work-time-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

.pm-progress-ring {
  transform: rotate(-90deg);
}

.pm-progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.pm-progress-ring-fill {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

/* 每日语录 */
.pm-daily-quote {
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  max-height: 60px;
  overflow: hidden;
  font-style: italic;
  width: 100%;
}

/* ============ 点击 toast ============ */
.pm-toast {
  position: absolute;
  z-index: 1000;
  background: rgba(30, 30, 30, 0.92);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
}

.pm-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==================================================
 * 第二屏：浏览器演示视频容器
 * ================================================== */
.browser-mockup {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  aspect-ratio: 2934 / 1742;
}

.browser-mockup .browser-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================================================
 * 第三屏：查日历 - 日历截图容器
 * ================================================== */
.calendar-preview {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.calendar-preview img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 打赏卡片：图标图片显示 ===== */
.donate-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-bottom: 8px;
}
.donate-card .card-icon img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

/* 打赏卡片：单卡图标视觉大小微调（按原始素材差异校正） */
.donate-card[data-amount="2"] .card-icon img { height: 46px; }
.donate-card[data-amount="6.6"] .card-icon img { height: 51px; }
.donate-card[data-amount="9.9"] .card-icon img { height: 66px; }

/* ==================================================
 * 打赏弹框（点击金额卡后弹出微信/支付宝双列收款码）
 * ================================================== */
.donate-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.donate-modal-overlay[hidden] { display: none; }
.donate-modal-overlay.show { opacity: 1; }

.donate-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}
.donate-modal-overlay.show .donate-modal {
  transform: translateY(0) scale(1);
}

.donate-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.donate-modal-close:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.donate-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.donate-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.donate-modal-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.donate-modal-qrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.donate-modal-qr {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 微信支付：品牌绿底 */
.donate-modal-qr--wechat {
  background: #07C160;
  border-color: #07C160;
}
.donate-modal-qr--wechat .donate-modal-qr-name {
  color: #ffffff;
}
.donate-modal-qr--wechat .donate-modal-qr-dot {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* 支付宝：品牌蓝底 */
.donate-modal-qr--alipay {
  background: #1677FF;
  border-color: #1677FF;
}
.donate-modal-qr--alipay .donate-modal-qr-name {
  color: #ffffff;
}
.donate-modal-qr--alipay .donate-modal-qr-dot {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.donate-modal-qr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.donate-modal-qr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.donate-modal-qr-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.donate-modal-qr-img {
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donate-modal-qr-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  border-radius: 6px;
}

.donate-modal-tip {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* 移动端：两列改单列 */
@media (max-width: 560px) {
  .donate-modal {
    padding: 32px 20px 24px;
    border-radius: 16px;
  }
  .donate-modal-title { font-size: 19px; }
  .donate-modal-qrs {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .donate-modal-qr-img img { max-width: 180px; }
}
