/* ============================================
   Chris 的项目仓库 — 移动端优先
   ============================================ */

:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6e6e73;
  --text-muted: #a1a1a6;

  --primary: #4f46e5;
  --primary-light: #eef2ff;
  --android: #10b981;
  --android-light: #ecfdf5;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  --radius: 16px;
  --radius-sm: 10px;

  --max-width: 720px;
  --safe-bottom: env(safe-area-inset-bottom);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT
   ============================================ */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 48px 0 32px;
  text-align: center;
}

.header-inner {
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   MAIN
   ============================================ */

.main {
  flex: 1;
  padding: 24px 0 40px;
}

/* ============================================
   PROJECT CARD
   ============================================ */

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:active {
  transform: scale(0.995);
}

.card-content {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-icon-dim {
  background: #f5f5f7;
  color: var(--text-muted);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.4;
}

.tag-version {
  background: #f0f0f5;
  color: var(--text-secondary);
}

.tag-stable {
  background: var(--android-light);
  color: #065f46;
}

.tag-pending {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================
   CARD ACTIONS / BUTTONS
   ============================================ */

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
  flex: 1;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-ios {
  background: var(--primary);
  color: #fff;
}

.btn-ios:hover {
  background: #4338ca;
}

.btn-ios:active {
  transform: scale(0.97);
}

.btn-android {
  background: var(--android);
  color: #fff;
}

.btn-android:hover {
  background: #059669;
}

.btn-android:active {
  transform: scale(0.97);
}

.btn-disabled {
  background: #e5e7eb;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============================================
   SOON CARD
   ============================================ */

.project-card-soon {
  opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  text-align: center;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
  .header {
    padding: 64px 0 40px;
  }

  .logo {
    font-size: 36px;
  }

  .subtitle {
    font-size: 17px;
  }

  .main {
    padding: 32px 0 48px;
  }

  .project-card {
    padding: 32px;
  }

  .card-icon {
    width: 64px;
    height: 64px;
  }

  .card-icon svg {
    width: 32px;
    height: 32px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-desc {
    font-size: 15px;
  }

  .btn {
    flex: 0 0 auto;
    min-width: 140px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}
