/* 极简邮箱 (Minimal Mail) - 极简官网样式 */
:root {
  --bg: #090d16;
  --card-bg: rgba(20, 27, 45, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 30px;
  position: relative;
  overflow-x: hidden;
}

/* Background subtle ambient glow */
body::before {
  content: '';
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  width: 100%;
  margin: auto 0;
  position: relative;
  z-index: 1;
}

/* App Logo */
.app-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}

.app-logo:hover {
  transform: scale(1.04);
}

.app-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.app-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 28px;
}

/* App Store Button */
.download-wrap {
  margin-bottom: 32px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  padding: 13px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 25px rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-appstore:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.28);
}

.btn-appstore svg {
  width: 20px;
  height: 20px;
}

/* Supported Mailboxes */
.mailbox-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mailbox-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-sub);
}

.mailbox-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-163 { background: #ef4444; }
.dot-qq { background: #0ea5e9; }
.dot-outlook { background: #3b82f6; }
.dot-gmail { background: #f43f5e; }
.dot-custom { background: #a855f7; }

/* Subtle Footer (不明显摆出条款，置于底部轻量文字) */
.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  max-width: 680px;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-links a, .footer-links button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 0;
  font-family: inherit;
}

.footer-links a:hover, .footer-links button:hover {
  color: var(--text-sub);
}

.footer-contact {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* Modal Popup for Legal Terms (点击后才弹出，不直接展示在主屏) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #0f1523;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(15px);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 21, 35, 0.95);
}

.modal-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 8px;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-sub);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  text-align: left;
}

.modal-panel {
  display: none;
}

.modal-panel.active {
  display: block;
}

.doc-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-source a {
  color: var(--accent);
  text-decoration: none;
}

.doc-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; color: #fff; }
.doc-section-title { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin: 24px 0 10px; }
.doc-sub-title { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; margin: 12px 0 6px; }
.doc-paragraph { font-size: 0.9rem; line-height: 1.7; color: #cbd5e1; margin-bottom: 10px; }
.doc-list-item { font-size: 0.9rem; line-height: 1.7; color: #cbd5e1; margin-left: 18px; margin-bottom: 6px; }

@media (max-width: 640px) {
  body { padding: 30px 16px 20px; }
  .app-title { font-size: 1.8rem; }
  .modal-window { height: 90vh; }
  .modal-body { padding: 20px 16px; }
}
