@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700&display=swap');

:root {
  --color-brand: #fa7e5f;
  --color-brand-dark: #e96644;
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.1);
}

/* Typography */
h1, h2, h3 {
  font-family: 'Noto Serif TC', "PingFang TC", "Microsoft JhengHei", serif;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(250, 126, 95, 0.12), rgba(233, 102, 68, 0.12));
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

html {
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f2ece5;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 24px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 24px rgba(15, 23, 42, 0.08);
}

.logo {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 1.4rem;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 32px;
}

/* Nav menu */
.nav > ul {
  display: flex;
  list-style: none;
}

.nav > ul > li {
  position: relative;
}

.nav a {
  display: block;
  position: relative;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  padding: 20px 18px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav > ul > li > a:hover,
.nav > ul > li > a.active {
  color: var(--color-brand);
}

.nav > ul > li > a:hover::after,
.nav > ul > li > a.active::after {
  transform: scaleX(1);
}

/* Submenu */
.submenu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  min-width: 160px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 100;
}

.submenu li a {
  color: #333;
  padding: 12px 18px;
}

.submenu li a:hover,
.submenu li a.active {
  background-color: rgba(250, 126, 95, 0.08);
  color: var(--color-brand);
}

.has-submenu:hover .submenu {
  display: block;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 80px 24px;
  background: linear-gradient(135deg, #1b2436 0%, #2c3a52 55%, #3e526e 100%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1 1 480px;
}

.hero-image {
  flex: 1 1 360px;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

.hero-image .img-placeholder {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.55);
}

.hero-image .img-placeholder svg {
  stroke: rgba(255, 255, 255, 0.4);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-content .hero-buttons {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 auto;
  }

  .hero-content .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(250, 126, 95, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(250, 126, 95, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 12px 30px;
  box-shadow: none;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border: 2px solid #fa7e5f;
  color: #fa7e5f;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-outline-dark .icon {
  width: 18px;
  height: 18px;
}

.btn-outline-dark:hover {
  background-color: #fa7e5f;
  color: #fff;
}

/* 圖片佔位區塊（之後請替換為實際圖片） */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background-color: #f1f3f6;
  border: 2px dashed #c9ced6;
  border-radius: 16px;
  color: #9aa3b1;
  font-size: 0.85rem;
  text-align: center;
  box-sizing: border-box;
}

.img-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: #c9ced6;
}

.hero-image img,
.why-us-image img,
.page-banner img,
.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Generic section */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #fa7e5f;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: #666;
  max-width: 720px;
  margin: 16px auto 40px;
  line-height: 1.8;
}

/* 頁面情境橫幅圖片 */
.page-banner {
  margin-bottom: 40px;
  aspect-ratio: 1100 / 480;
  border-radius: 16px;
  overflow: hidden;
}

.page-banner--short {
  aspect-ratio: 1100 / 400;
}

/* Fee cards */
.fee-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.fee-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  flex: 1 1 400px;
}

.fee-card h3 {
  color: #fa7e5f;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.fee-card h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #333;
}

.fee-card h4:first-child {
  margin-top: 0;
}

.fee-card p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.fee-card ul,
.fee-card ol {
  padding-left: 20px;
  color: #555;
  line-height: 1.8;
}

/* Eligibility cards */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.eligibility-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #fff;
  border: 2px solid rgba(250, 126, 95, 0.25);
  border-radius: 12px;
  padding: 20px;
}

.eligibility-card .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.eligibility-card > p {
  margin-bottom: 0;
}

.eligibility-card--wide {
  grid-column: 1 / -1;
}

.eligibility-text p {
  margin-bottom: 4px;
}

.eligibility-text p:last-child {
  margin-bottom: 0;
}

.eligibility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.eligibility-tags .tag {
  position: relative;
  background-color: #fff;
  border: 1px solid rgba(250, 126, 95, 0.3);
  color: #555;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: default;
}

.eligibility-tags .tag:focus {
  outline: none;
  border-color: var(--color-brand);
  background-color: rgba(250, 126, 95, 0.08);
}

.eligibility-tags .tag::after {
  content: "等級：" attr(data-level);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 10;
}

.eligibility-tags .tag:hover::after,
.eligibility-tags .tag:focus::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .eligibility-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  max-width: none;
}

.detail-card + .detail-card {
  margin-top: 32px;
}

.fee-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
  font-size: 0.85rem;
  color: #888;
}

.fee-note-list {
  display: block;
  padding-left: 1.5em;
}

/* Process flow (聘僱流程) */
.process-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}

.process-step {
  width: 100%;
  max-width: 480px;
  background-color: #fff;
  border: 2px solid rgba(250, 126, 95, 0.25);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  color: #333;
  font-weight: bold;
}

.process-step--accent {
  background-color: rgba(250,126,95,0.10);
  border-color: rgba(250,126,95,0.45);
  color: #333;
}

.process-arrow {
  width: 24px;
  height: 24px;
  color: var(--color-brand);
  flex-shrink: 0;
}

/* Fee table */
.fee-table-wrap {
  margin-top: 32px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.fee-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fa7e5f;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.fee-table-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fee-card .fee-table-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.fee-table-wrap h4 {
  margin: 24px 0 12px;
  color: #333;
  font-size: 1.05rem;
}

.table-scroll {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.fee-table th {
  background-color: rgba(250, 126, 95, 0.12);
  color: #e96644;
  padding: 12px;
  border: 1px solid #fff;
  font-weight: bold;
}

.fee-table td {
  padding: 14px 12px;
  border: 1px solid #eee;
  background-color: #fafafa;
  color: #333;
  line-height: 1.7;
}

.fee-table small {
  color: #888;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .fee-table th,
  .fee-table td {
    padding: 10px 6px;
  }
}

.points-table th:not(:last-child),
.points-table td:not(:last-child) {
  text-align: left;
}

/* Service cards (homepage) */
.service-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.service-card {
  display: block;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  flex: 1 1 280px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  color: #fa7e5f;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-link {
  color: #fa7e5f;
  font-weight: bold;
}

/* 為什麼選擇我們 */
.why-us {
  display: flex;
  align-items: center;
  gap: 48px;
}

.why-us-image {
  flex: 1 1 360px;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

.why-us-content {
  flex: 1 1 400px;
}

.why-us-content h2 {
  font-size: 1.8rem;
  color: #fa7e5f;
  margin-bottom: 16px;
}

.why-us-content > p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.why-us-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-us-list li {
  position: relative;
  padding-left: 28px;
  color: #555;
  line-height: 1.7;
}

.why-us-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand);
  font-weight: bold;
}

@media (max-width: 768px) {
  .why-us {
    flex-direction: column;
  }

  .why-us-image,
  .why-us-content {
    flex: 1 1 auto;
  }

  .why-us-image {
    max-width: 100%;
    width: 100%;
  }

  .why-us-content h2 {
    text-align: center;
  }
}

/* Online worker selection iframe */
.iframe-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: #fff;
  padding: 28px;
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
}

/* News card */
.news-card {
  max-width: 760px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 40px 28px;
  text-align: center;
}

.news-card p {
  color: #666;
  line-height: 1.8;
}

/* News list (loaded from news-data.json) */
.news-list {
  display: none;
  flex-direction: column;
  gap: 16px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-bottom: 40px;
}

.news-item {
  max-width: 720px;
  margin: 0 auto;
  background-color: #fff;
  border: 2px solid rgba(250, 126, 95, 0.25);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-item-thumb {
  flex: 0 0 80px;
  width: 80px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}

.news-item-thumb .img-placeholder {
  font-size: 0.6rem;
  gap: 4px;
}

.news-item-thumb .img-placeholder svg {
  width: 20px;
  height: 20px;
}

.news-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 601px) {
  .news-item-thumb {
    flex: 0 0 60px;
    width: 60px;
  }
}

@media (max-width: 600px) {
  .news-item {
    flex-direction: column;
  }

  .news-item-thumb {
    flex: 0 0 80px;
  }
}

.news-question {
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.news-question-text {
  display: flex;
  flex-direction: column;
}

.news-item-date {
  display: block;
  color: #fa7e5f;
  font-weight: bold;
  margin-bottom: 8px;
}

.news-item-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #333;
  transition: color 0.2s ease;
}

.news-question:hover .news-item-title,
.news-item.open .news-item-title {
  color: var(--color-brand);
}

.accordion-icon {
  color: var(--color-brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.news-item.open .accordion-icon {
  transform: rotate(180deg);
}

.news-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}

.news-item.open .news-answer {
  grid-template-rows: 1fr;
}

.news-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.news-item-content {
  color: #666;
  line-height: 1.8;
  margin: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  white-space: pre-line;
}

.news-item-hidden {
  display: none;
}

.news-load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.news-load-more {
  display: inline-block;
  padding: 10px 26px;
  border: 2px solid #fa7e5f;
  border-radius: 30px;
  background: none;
  color: #fa7e5f;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.news-load-more:hover {
  background-color: #fa7e5f;
  color: #fff;
}

/* Contact */
.contact-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 320px;
}

.contact-info p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.8;
}

.contact-info strong {
  color: #333;
}

.contact-info a {
  color: #fa7e5f;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  color: #555;
  line-height: 1.6;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list .icon {
  color: var(--color-brand);
}

.contact-list a {
  color: #fa7e5f;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.map {
  flex: 1 1 320px;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* Request form */
.section-divider {
  border: none;
  border-top: 1px solid #ddd4cb;
  margin: 48px 0 32px;
}

.request-form {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.form-honeypot {
  display: none;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 240px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group .required {
  color: #fa7e5f;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ece6e0;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  background-color: #fbf9f7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #ddd4cb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(250, 126, 95, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  color: #555;
  cursor: pointer;
  padding: 9px 18px;
  border: 1.5px solid #ece6e0;
  border-radius: 9999px;
  background-color: #fbf9f7;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.radio-option:hover {
  border-color: var(--color-brand);
}

.radio-option:has(input:checked) {
  border-color: var(--color-brand);
  background-color: rgba(250, 126, 95, 0.08);
  color: var(--color-brand);
  font-weight: 600;
}

.radio-option input {
  accent-color: var(--color-brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-actions {
  text-align: center;
  margin-top: 16px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 56px 36px;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 48px;
  height: 48px;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 8px;
}

.form-success p {
  color: #777;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.faq-item {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background-color: #fff;
  border: 2px solid rgba(250, 126, 95, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
}

.faq-question {
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  font-size: 1.05rem;
  font-family: inherit;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover,
.faq-item.open .faq-question {
  color: var(--color-brand);
}

.faq-question-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-q-icon {
  color: var(--color-brand);
  flex-shrink: 0;
}

.faq-item.open .accordion-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer-inner p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #555;
  line-height: 1.8;
}

/* Download list */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.download-item {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background-color: #fff;
  border: 2px solid rgba(250, 126, 95, 0.25);
  border-radius: 12px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.download-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(250, 126, 95, 0.12), rgba(233, 102, 68, 0.12));
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-icon svg {
  width: 22px;
  height: 22px;
}

.download-info {
  flex: 1;
}

.download-info h3 {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.download-info p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.download-item .btn-outline-dark {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-item .btn-outline-dark {
    align-self: stretch;
    text-align: center;
  }
}

/* Footer */
footer {
  background-color: #333;
  color: #ccc;
  padding: 32px 24px 20px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-info p {
  margin: 0;
}

.footer-info a {
  color: #ccc;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fa7e5f;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.social-icon:hover {
  background-color: #e96644;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-copy {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  footer {
    padding-bottom: 64px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 500px;
  }

  .nav > ul {
    flex-direction: column;
  }

  .nav a {
    padding: 14px 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }

  .nav > ul > li > a::after {
    display: none;
  }

  .submenu {
    position: static;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background-color: rgba(250, 126, 95, 0.04);
  }

  .submenu li a {
    color: #333;
    padding-left: 40px;
  }

  .has-submenu .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }
}

/* 浮動 LINE 按鈕 */
.line-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06c755;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.line-float:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(6, 199, 85, 0.35);
}

.line-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@media (max-width: 768px) {
  .line-float {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .line-float svg {
    width: 24px;
    height: 24px;
  }
}

/* 資源中心頁籤導覽 */
.resource-tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.resource-tab {
  padding: 9px 22px;
  border: 2px solid #fa7e5f;
  border-radius: 8px;
  color: #fa7e5f;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: background-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.resource-tab:hover,
.resource-tab--active {
  background-color: #fa7e5f;
  color: #fff;
}

@media (max-width: 600px) {
  .resource-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .resource-tab {
    padding: 8px 12px;
    font-size: 0.9rem;
    text-align: center;
  }
}

.points-table td:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fa7e5f;
  text-align: center;
  white-space: nowrap;
}

/* Language switcher (advocacy page) */
.lang-header {
  background: #fff8f6;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.lang-notice {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.lang-notice a {
  color: var(--color-brand);
  text-decoration: none;
}

.lang-notice a:hover {
  text-decoration: underline;
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-btn {
  padding: 5px 15px;
  border: 1.5px solid var(--color-brand);
  border-radius: 20px;
  background: transparent;
  color: var(--color-brand);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  line-height: 1.4;
}

.lang-btn:hover,
.lang-btn--active {
  background: var(--color-brand);
  color: #fff;
}

.advocacy-notice {
  background: #fdf5f3;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #999;
}

.advocacy-notice a {
  color: var(--color-brand);
  text-decoration: none;
}

.advocacy-notice a:hover {
  text-decoration: underline;
}
