:root {
  --blue: #2b5fc7;
  --green: #3cb454;
  --ink: #2b2f36;
  --muted: #8a9099;
  --line: #e6e9ef;
  --bg: #f2f4f8;
  --card: #ffffff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  gap: 16px;
}

.card {
  flex: 1;
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 3px solid var(--blue);
  border-radius: 14px;
  padding: 36px 24px 28px;
  box-shadow: 0 10px 30px rgba(43, 95, 199, 0.08);
  display: flex;
  flex-direction: column;
}

/* ---------- brand ---------- */
.brand { text-align: center; margin-bottom: 28px; }

.logo {
  height: 62px;
  width: auto;
  margin-bottom: 24px;
}

.welcome {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- section title ---------- */
.section-title {
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  padding: 9px 12px;
  border-radius: 6px;
  margin: 0 0 16px;
}
.section-title.plain {
  background: none;
  color: var(--ink);
  font-size: 18px;
  padding: 0;
  margin-bottom: 18px;
}

/* ---------- document list ---------- */
.docs { margin-bottom: 30px; }

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  transition: box-shadow 0.2s;
}
.doc-item:hover { box-shadow: 0 4px 14px rgba(43, 95, 199, 0.10); }

.doc-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fdecec;
  color: #d93025;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-info { flex: 1; min-width: 0; }
.doc-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.doc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.doc-actions { flex: none; display: flex; flex-direction: column; gap: 8px; }

.btn {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--blue);
}
.btn-open { background: var(--blue); color: #fff; }
.btn-download { background: #fff; color: var(--blue); }
.btn:active { opacity: 0.8; }

.doc-empty { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- QR codes ---------- */
.more { text-align: center; margin-bottom: 26px; }

.qrs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 20px;
}
.qr img {
  width: 128px;
  height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.qr figcaption { font-size: 14px; margin-top: 8px; color: var(--ink); }

.tel { font-size: 16px; }
.tel a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ---------- footer ---------- */
.company {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.tip-desktop { display: none; font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .page { padding: 48px 24px; justify-content: center; }
  .card { flex: none; padding: 48px 44px 36px; }
  .tip-desktop { display: block; }
}

@media (max-width: 360px) {
  .card { padding: 28px 14px 22px; }
  .qrs { gap: 14px; }
  .qr img { width: 112px; height: 112px; }
  .doc-item { flex-wrap: wrap; }
  .doc-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
}
