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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-user-select: auto;
  user-select: auto;
}

/* ── 主题变量 ── */
[data-disk="quark"]   { --page-bg: #eaecf7; --accent: #1677ff; }
[data-disk="baidu"]   { --page-bg: #deeaf7; --accent: #2468f2; }
[data-disk="thunder"] { --page-bg: #e8f0f7; --accent: #1a78c2; --header-bg: #2976ef; }
[data-disk="uc"]      { --page-bg: #eef1f5; --accent: #1677ff; }
[data-disk="aliyun"]  { --page-bg: #eaf3ff; --accent: #ff6a00; }
[data-disk="189"]     { --page-bg: #e8f0f7; --accent: #4a90d9; }
[data-disk="139"]     { --page-bg: #e8f5e9; --accent: #5fc25f; }

/* ── QR 页面 ── */
.qr-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg, #eaecf7);
  transition: background .3s;
}

/* Header */
.page-header {
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--header-bg, transparent);
}

.header-logo {
  width: 140px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.header-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: .3px;
}

/* Body */
.page-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding: 48px 40px 0;
}

/* ── QR Card ── */
.qr-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 38px 32px;
  width: 400px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp .35s ease both;
}

.card-title {
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.65;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-title-label {
  font-weight: 700;
}

.card-hint {
  font-size: 14px;
  color: #aaa;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-hint strong { font-weight: 600; color: #666; }

.qr-wrap {
  width: 170px;
  height: 170px;
  margin-bottom: 16px;
  border: 1.5px solid #e5e6e8;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrap img { display: block; }

/* ── QR Content wrapper (for expired overlay) ── */
.qr-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.qr-content--expired .qr-wrap {
  background: #f5f5f5;
}

.expired-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.expired-text {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.8;
  padding: 24px;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0 14px;
}

.card-contact {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.7;
}

.card-notice {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 6px;
}

.card-cta {
  font-size: 18px;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.6;
}

.cta-app {
  color: var(--accent);
  font-weight: 600;
}

/* ── Phone Image ── */
.phone-wrap {
  flex-shrink: 0;
  animation: fadeUp .35s ease .08s both;
}

.phone-img {
  width: 380px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 36px rgba(0,0,0,0.18));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
