body {
  margin: 0;
  font-family: "Segoe UI", "微軟正黑體", Arial, sans-serif;
  background: #f7fafd;
  color: #23272e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.forum-header {
  background: linear-gradient(90deg, #4ad6e7 0%, #6a8ef7 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-wrap {
  display: flex;
  align-items: center;
}
.forum-logo {
  height: 48px;
  margin-right: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.forum-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
}
.forum-nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-link:hover {
  background: #00c6d7;
}
.nav-link.active {
  background: #fff;
  color: #00c6d7;
  box-shadow: 0 2px 8px rgba(0,198,215,0.15);
  font-weight: bold;
}
.company-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  background: linear-gradient(120deg, #eaf7fd 0%, #f7fafd 100%);
  min-height: 100vh;
}

.company-hero-block {
  width: 100%;
  max-width: 1100px;
  margin: 48px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 48px 32px;
}
.company-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.company-hero-text h1 {
  font-size: 2.8rem;
  color: #2e7be6;
  font-weight: bold;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.company-hero-text p {
  font-size: 1.35rem;
  color: #00bcd4;
  margin-bottom: 0;
}
.company-section {
  width: 100%;
  max-width: 900px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.company-area {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 32px 24px 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 8px solid #4ad6e7;
}
.company-area h2 {
  font-size: 1.7rem;
  color: #2e7be6;
  font-weight: bold;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.company-area p, .company-area ul, .company-area ol {
  font-size: 1.13rem;
  color: #23272e;
  line-height: 1.9;
  margin-bottom: 8px;
  padding-left: 4px;
}
.company-area ul, .company-area ol {
  margin: 0 0 0 18px;
  padding: 0;
}
.company-area li {
  margin-bottom: 10px;
  padding-left: 2px;
}
.company-area a {
  color: #2e7be6;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted #00c6d7;
  transition: border 0.2s;
}
.company-area a:hover {
  text-decoration: underline;
  border-bottom: 2px solid #00c6d7;
}
.forum-footer {
  background: linear-gradient(90deg, #4ad6e7 0%, #6a8ef7 100%);
  color: #fff;
  text-align: center;
  padding: 24px 0 12px 0;
}
.footer-inner {
  font-size: 1rem;
  font-weight: 500;
}

@media  (max-width: 1080px) {
  .forum-header {
    flex-direction: column;
    height: auto;
    padding: 8px 6px;
  }
  .logo-wrap {
    margin-bottom: 6px;
  }
  .forum-title {
    font-size: 1.1rem;
  }
  .forum-nav {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 6px;
  }
}

/* 769px ~ 1024px 響應式整合 */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-nav {
    top: 64px;
    width: 320px;
    max-width: 90vw;
    right: 0;
    left: auto;
    z-index: 10000;
  }
  .company-hero-block,
  .company-section,
  .company-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
    /* APP下載區塊按鈕列置中 */
  #section-app .btn-row,
  #section-app > div > div > div {
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: flex !important;
  }
    /* 1024px 以下強制隱藏 APP下載左圖 */
  #section-app-row > div:first-child {
    display: none !important;
  }
}

/* 768px 以下響應式整合 */
@media (max-width: 768px) {
  .company-hero-block {
    flex-direction: column;
    gap: 12px;
    padding: 12px 4px;
    margin-top: 12px;
    max-width: 100vw;
  }
  .company-hero-image {
    max-width: 90vw;
    height: auto;
  }
  .company-hero-text h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .company-hero-text p {
    font-size: 1rem;
  }
  .company-section {
    gap: 18px;
    margin-top: 12px;
    padding: 0 2px;
  }
  .company-area {
    padding: 10px 6px 8px 6px;
    border-left-width: 3px;
    font-size: 0.98rem;
  }
  .company-area h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .company-area p, .company-area ul, .company-area ol {
    font-size: 0.98rem;
    line-height: 1.6;
  }
  .forum-footer {
    padding: 12px 0 6px 0;
    font-size: 0.95rem;
  }
  .mobile-nav {
    top: 80px;
    position: fixed;
    width: 90vw;
    max-width: 320px;
    right: 0;
    left: auto;
    z-index: 10000;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  }
  .company-hero-block,
  .company-section,
  .company-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }
  .company-area h2,
  .company-area p,
  .company-area ul,
  .company-area ol {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 優質服務指標上下排列 */
  #section-service > div:first-child {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  #section-service > div:first-child > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* 優質服務項目圖在上文字在下 */
  #section-service > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    margin: 18px 0 0 0 !important;
  }
  #section-service > div:last-child > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 10px 14px 10px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #section-service > div:last-child > div img {
    margin-bottom: 8px !important;
    width: 48px !important;
    height: 48px !important;
    display: block !important;
  }
  #section-service > div:last-child > div > div {
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }

  /* APP下載區塊按鈕列置中 */
  #section-app .btn-row,
  #section-app > div > div > div {
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: flex !important;
  }

  /* 768px 以下強制隱藏 APP下載左圖 */
  #section-app-row > div:first-child {
    display: none !important;
  }
  
  #section-app-row > div:last-child > div:last-child {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 15px !important;
  }
}

.game-card {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 260px;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* 主要內容區塊內的小區塊自適應 */
.company-hero-block,
.company-section {
  /* 讓內部小區塊寬度自動填滿父層 */
  width: 100%;
  box-sizing: border-box;
}

.company-area {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* 圖片自適應 */
.company-hero-image {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}