:root {
  --bg: #f4efe6;
  --bg-deep: #e8dfd0;
  --card: #fffaf2;
  --text: #2f2a24;
  --muted: #6f6558;
  --accent: #8a4f2b;
  --accent-dark: #62331a;
  --line: rgba(47, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 79, 43, 0.13), transparent 30%),
    linear-gradient(180deg, var(--bg), #fff);
}

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

.hero {
  min-height: 92vh;
  padding: 24px clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-visual {
  width: min(100%, 920px);
  margin-top: 28px;
  align-self: center;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(47, 42, 36, 0.12);
  background: #fff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.hero-content {
  max-width: 760px;
  padding: 80px 0 40px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  margin: 0;
}

.hero-text {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--muted);
  margin: 22px 0 30px;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.section {
  padding: 80px clamp(20px, 5vw, 64px);
}

.alt {
  background: rgba(232, 223, 208, 0.45);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title p {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.grid,
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: start;
}

.feedback-intro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(47, 42, 36, 0.05);
}

.feedback-intro h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.feedback-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feedback-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(47, 42, 36, 0.05);
  display: grid;
  gap: 12px;
}

.feedback-form label {
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(138, 79, 43, 0.2);
  border-color: var(--accent);
}

.form-button {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

.card,
.article,
.timeline-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(47, 42, 36, 0.05);
}

.card h3,
.article h3,
.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p,
.article p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(138, 79, 43, 0.12);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 64px) 40px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.footer button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .nav,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .hero-visual img {
    height: 260px;
  }

  .hero-content {
    padding-top: 56px;
  }

  .feedback-layout {
    grid-template-columns: 1fr;
  }
}
