:root {
  --primary: #1a365d;
  --secondary: #e2e8f0;
  --accent: #d69e2e;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(26, 54, 93, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #dbe4ee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary);
  color: var(--white);
}

.hero {
  background: linear-gradient(120deg, rgba(26, 54, 93, 0.92), rgba(26, 54, 93, 0.72)),
    url("https://placehold.co/1600x900/1a365d/e2e8f0?text=Industrial+Manufacturing") center/cover no-repeat;
  color: var(--white);
}

.hero-cases {
  background: linear-gradient(120deg, rgba(12, 32, 57, 0.92), rgba(26, 54, 93, 0.74)),
    url("https://placehold.co/1600x900/142f4f/e2e8f0?text=Success+Cases") center/cover no-repeat;
}

.hero-faq {
  background: linear-gradient(120deg, rgba(15, 38, 66, 0.92), rgba(22, 56, 94, 0.78)),
    url("https://placehold.co/1600x900/163b63/e2e8f0?text=FAQ") center/cover no-repeat;
}

.hero-content {
  padding: 96px 0;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 14px;
}

.hero p {
  margin: 0 0 28px;
  color: #eff4fb;
}

.btn-primary {
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1a1a1a;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.section {
  padding: 62px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.section-alt {
  background: var(--secondary);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.3;
  color: var(--primary);
}

.lead {
  max-width: 860px;
  color: #334155;
}

.grid {
  display: grid;
  gap: 20px;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.entry-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  box-shadow: var(--shadow);
}

.entry-card h3,
.entry-card p {
  padding: 0 16px;
}

.entry-card h3 {
  margin-top: 16px;
  margin-bottom: 8px;
}

.entry-card p {
  margin-top: 0;
  margin-bottom: 20px;
  color: #475569;
}

.quick-cases {
  padding-top: 46px;
}

.case-preview-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(26, 54, 93, 0.14);
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  border-top: 5px solid var(--primary);
}

.case-card h3 {
  margin: 8px 0 12px;
}

.case-card p {
  margin: 0 0 10px;
  color: #334155;
}

.case-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dce7f3, #f8fbff);
  border: 1px solid #c7d7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.case-result {
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
}

.faq-wrap {
  width: min(900px, 100%);
}

.faq-item {
  background: var(--white);
  border: 1px solid #d3dfec;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-right: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.22s ease;
  color: var(--primary);
  font-size: 1.05rem;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--primary);
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  margin: 0 0 18px 0;
  padding-left: 16px;
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
}

.timeline-content p {
  margin: 4px 0 0;
}

.iso-box img {
  border-radius: 12px;
  margin-bottom: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.filter-btn {
  border: 1px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card h3 {
  margin-bottom: 8px;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.product-dialog {
  border: 1px solid #c8d7e8;
  border-radius: 12px;
  width: min(560px, 92%);
  padding: 24px;
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step {
  background: var(--white);
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.arrow {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.list {
  margin: 0;
  padding-left: 18px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
  color: #334155;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b9c9db;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(26, 54, 93, 0.25);
  border-color: var(--primary);
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  font-weight: 500;
}

.form-feedback.error {
  color: #b91c1c;
}

.form-feedback.success {
  color: #166534;
}

.map-box img {
  border-radius: 10px;
  margin-top: 12px;
}

.site-footer {
  background: var(--primary);
  color: #e8eef7;
  padding: 18px 0;
}

.footer-link {
  color: #e8eef7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
}

@media (max-width: 960px) {
  .three-col,
  .products-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding: 70px 0;
  }

  .three-col,
  .two-col,
  .products-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-wrap {
    flex-direction: column;
  }
}
