* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  overflow: hidden;
  background: #fff;
}

#app {
  width: 100%;
  height: 100%;
}

/* ==================== 仿视频站页面 ==================== */
.fake-site {
  width: 100%;
  height: 100%;
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

/* 顶部导航 */
.site-header {
  background: #fff;
  padding: 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-tabs {
  display: flex;
  justify-content: space-around;
  padding: 0 10px 10px;
}

.header-tabs .tab {
  font-size: 15px;
  color: #666;
  padding: 4px 12px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.header-tabs .tab.active {
  color: #333;
  font-weight: 600;
}

.header-tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #ff4d6a;
  border-radius: 2px;
}

/* 公告栏 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fffbe6;
  border-bottom: 1px solid #fff1b8;
  font-size: 13px;
  color: #d48806;
  overflow: hidden;
  white-space: nowrap;
}

.notice-icon {
  flex-shrink: 0;
}

.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 视频列表 */
.video-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  padding-bottom: 70px;
}

.video-card {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.15s;
}

.video-card:active {
  transform: scale(0.98);
}

.video-title {
  padding: 10px 12px 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56%;
  overflow: hidden;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
}

.free-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 200, 83, 0.9);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 2;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  z-index: 2;
}

.video-stats {
  display: flex;
  justify-content: space-around;
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
}

.stat-icon {
  font-size: 11px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.nav-item .nav-icon {
  font-size: 20px;
  opacity: 0.6;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-item .nav-label {
  font-size: 10px;
  color: #999;
}

.nav-item.active .nav-label {
  color: #ff4d6a;
}

/* 跳转弹窗 */
.redirect-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
}

.modal-loading {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #f0f0f0;
  border-top-color: #ff4d6a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================== 海外 IP 展示图片 ==================== */
.overseas-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 100;
}

.overseas-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-btn {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fd779d 0%, #ff5e8a 50%, #e84575 100%);
  border: none;
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(253, 119, 157, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 110;
  animation: fadeIn 0.6s ease-out 0.3s both, btnPulse 2s ease-in-out infinite 1s;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 28px rgba(253, 119, 157, 0.6);
}

.download-btn:active {
  transform: translateY(0) scale(0.97);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(253, 119, 157, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(253, 119, 157, 0.65); }
}

/* ==================== 错误页面 ==================== */
.error-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  z-index: 100;
}

.error-container .content {
  text-align: center;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.error-container h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #fff;
}

.error-container p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}
