/* ==========================================================================
   外壳内建视图样式：「迁移中」占位视图 + webview 容器
   这两个视图不属于具体业务页面，常驻外壳 index.html，样式同样常驻。
   ========================================================================== */

/* --------------------------- 迁移中占位视图 --------------------------- */
.placeholder-view {
  max-width: var(--page-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--theme-from) 0%, var(--theme-to) 100%);
  padding: calc(30 * var(--rpx));
  padding-top: calc(120 * var(--rpx));
  box-sizing: border-box;
}

.placeholder-card {
  background: #fff;
  border-radius: calc(16 * var(--rpx));
  padding: calc(40 * var(--rpx)) calc(30 * var(--rpx));
  box-shadow: 0 calc(8 * var(--rpx)) calc(32 * var(--rpx)) rgba(0, 0, 0, 0.12);
  text-align: center;
}

.placeholder-title {
  font-size: calc(32 * var(--rpx));
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: calc(16 * var(--rpx));
}

.placeholder-desc {
  font-size: calc(24 * var(--rpx));
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: calc(16 * var(--rpx));
}

.placeholder-path {
  display: inline-block;
  font-size: calc(22 * var(--rpx));
  color: var(--color-link);
  background: #f0f9ff;
  border-radius: calc(8 * var(--rpx));
  padding: calc(6 * var(--rpx)) calc(14 * var(--rpx));
  word-break: break-all;
}

.placeholder-actions {
  display: flex;
  justify-content: center;
  gap: calc(20 * var(--rpx));
  margin-top: calc(30 * var(--rpx));
}

.placeholder-btn {
  font-size: calc(26 * var(--rpx));
  color: #fff;
  background: linear-gradient(135deg, var(--theme-from) 0%, var(--theme-to) 100%);
  border-radius: calc(16 * var(--rpx));
  padding: calc(14 * var(--rpx)) calc(40 * var(--rpx));
  cursor: pointer;
}

.placeholder-btn--plain {
  color: var(--theme-from);
  background: #fff;
  border: calc(2 * var(--rpx)) solid var(--theme-from);
}

/* --------------------------- webview 容器（对应 pages/webview） --------- */
.webview-view {
  max-width: var(--page-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.webview-bar {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--rpx));
  padding: calc(16 * var(--rpx)) calc(20 * var(--rpx));
  background: #f8f8f8;
  border-bottom: calc(1 * var(--rpx)) solid #eee;
}

.webview-bar__back {
  font-size: calc(28 * var(--rpx));
  color: var(--color-primary);
  cursor: pointer;
}

.webview-bar__url {
  flex: 1;
  font-size: calc(22 * var(--rpx));
  color: var(--color-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webview-view iframe {
  flex: 1;
  width: 100%;
  border: 0;
  min-height: 60vh;
}
