.* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background: #fff;
}

/* ===== Header ===== */
header {
  background-color: #222;
  color: white;
  padding: 1em 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 60px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 0.5em;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1em;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  background-image: url('病毒圖.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  color: #ff2e2e;
  padding: 2em;
  text-align: center;
  border-radius: 10px;
  max-width: 90%;
}

.hero-overlay h1 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #ff4d4d;
}

.hero-overlay p {
  font-size: 1.2em;
  color: #ff6666;
}

/* ===== Introduction Section ===== */
.intro-section {
  padding: 60px 20px;
  text-align: center;
}

.intro-section h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #111;
}

.intro-section p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2em;
}

.full-width-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== 行銷目標區塊 ===== */
.goal-section {
  padding: 60px 20px;
  text-align: center;
}

.goal-section h2 {
  font-size: 1.6em;
  margin-bottom: 0.3em;
}

.goal-section p {
  font-size: 1em;
  color: #777;
  margin-bottom: 2em;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.goal-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  position: relative;
  text-align: center;
}

.goal-card:hover {
  transform: translateY(-5px);
}

.goal-card img {
  display: none;
}

.goal-card h3 {
  margin: 0.5em 0;
  font-size: 1.2em;
  color: #222;
}

.goal-card p {
  font-size: 0.95em;
  color: #666;
}

.goal-card a {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 20px;
  color: #007BFF;
  text-decoration: none;
}

.fade-in-img {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-img.show {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1em;
  background-color: #ddd;
  margin-top: 3em;
}

/* ===== RWD 手機版 ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-left {
    margin-bottom: 10px;
  }

  .site-title {
    font-size: 1.3em;
  }

  .logo {
    height: 50px;
  }

  .header-center {
    justify-content: flex-start;
    gap: 10px;
  }

  .hero-section {
    height: 400px;
  }

  .hero-overlay h1 {
    font-size: 1.3em;
  }

  .hero-overlay p {
    font-size: 1em;
  }

  .goal-grid {
    grid-template-columns: 1fr;
  }
}
