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;
 }

/* 漢堡選單按鈕 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.hamburger-bar {
  width: 28px;
  height: 4px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);

}
.hamburger.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.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%;
  margin: 48px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  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-hero-text h2 {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.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: row;
    height: auto;
    padding: 8px 12px;
    position: relative;
  }
  .logo-wrap {
    margin-bottom: 0;
  }
  .forum-title {
    font-size: 1.1rem;
  }
  .hamburger {
    display: flex;
  }
  .forum-nav {
    position: absolute;
    top: 80px;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border-radius: 0 0 16px 16px;
    padding: 12px 0;
    display: none;
    z-index: 150;
  }
  .forum-nav.nav-open {
    display: flex;
  }
  .nav-link {
    color: #2e7be6;
    font-size: 1rem;
    text-align: left;
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 1px solid #eaf7fd;
    background: none;
    transition: background 0.2s;
    font-weight: 500;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:hover {
    background: #eaf7fd;
    color: #00c6d7;
  }
  .nav-link.active {
    background: #eaf7fd;
    color: #00c6d7;
    font-weight: bold;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .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;
  }
}

@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;
  }
  .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;
  }
}

/* 主要內容區塊內的小區塊自適應 */
.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);
}
