/* ==========================================
   全域變數與重置 (Variables & Reset)
   ========================================== */
:root {
  --primary-color: #007aff;
  --primary-hover: #0056b3;
  --bg-color: #f2f2f7;
  --card-bg: #ffffff;
  --text-color: #1c1c1e;
  --secondary-text: #8e8e93;
  --border-color: #e5e5ea;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
}

.mobile-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 40px;
}

/* ==========================================
   Header 模組
   ========================================== */
.app-header {
  margin: -16px -16px 12px -16px;
  padding: 16px 16px 4px 16px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  width: calc(100% + 32px);
  box-sizing: border-box;
}

.app-header.align-left   { text-align: left; align-items: flex-start; }
.app-header.align-center { text-align: center; align-items: center; }
.app-header.align-right  { text-align: right; align-items: flex-end; }

.app-header h1 { font-size: 22px; margin: 0 0 2px 0; }
.app-header p  { font-size: 14px; color: var(--secondary-text); margin: 0; }

/* ==========================================
   Spacer & Divider 留白與分隔線
   ========================================== */
.app-spacer { display: block; width: 100%; height: 12px; background: transparent; box-sizing: border-box; flex-shrink: 0; }
.app-spacer.inline { display: inline-block; width: 12px; height: 100%; }

.app-divider { width: 100%; border: none; margin: 12px 0; box-sizing: border-box; }
.app-divider.solid  { border-top: 1px solid var(--border-color); }
.app-divider.dashed { border-top: 1px dashed var(--border-color); }
.app-divider.dotted { border-top: 1px dotted var(--border-color); }
