/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a73e8;
  --color-primary-light: #e8f0fe;
  --color-success: #1e8e3e;
  --color-success-light: #e6f4ea;
  --color-warning: #f9ab00;
  --color-warning-light: #fef7e0;
  --color-text: #202124;
  --color-text-secondary: #5f6368;
  --color-bg: #f8f9fa;
  --color-card: #ffffff;
  --color-border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Hero Header === */
.hero {
  background: linear-gradient(135deg, var(--color-primary), #4285f4);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero .period {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* === Cards === */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1.5rem 0;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.card.highlight {
  border-left: 4px solid var(--color-success);
  background: var(--color-success-light);
}

.card.highlight h2 {
  border-bottom-color: var(--color-success);
}

/* === Lists === */
ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.6rem;
}

.project-list li {
  list-style: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.project-list li:last-child {
  border-bottom: none;
}

.project-list li::before {
  content: "▸ ";
  color: var(--color-primary);
  font-weight: bold;
}

.summary-list li {
  padding: 0.5rem 0;
  font-weight: 500;
}

/* === Progress Grid === */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.progress-item {
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.progress-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.progress-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.progress-item p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.6rem;
}

/* === Badges === */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
}

.badge-done {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-wip {
  background: var(--color-warning-light);
  color: #e37400;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* === RWD === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .card {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .card {
    padding: 1.2rem;
    border-radius: 8px;
  }
}
