:root {
  --bg: #f6efe6;
  --panel: rgba(255, 250, 244, 0.85);
  --panel-strong: #fffaf3;
  --primary: #8b5e3c;
  --primary-soft: #d9b792;
  --text: #3f2f29;
  --muted: #745d52;
  --line: rgba(105, 79, 61, 0.2);
  --shadow: rgba(95, 65, 45, 0.15);
  --accent: #c9956e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 40%),
    linear-gradient(180deg, #f8f2ea 0%, #f0e7dc 100%);
}

.page-shell {
  width: min(760px, 100%);
}

/* Header */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1d7b7 0%, #dcb08a 100%);
  color: var(--panel-strong);
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(139, 94, 60, 0.12);
}

.lang-toggle {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: linear-gradient(135deg, #f1d7b7 0%, #dcb08a 100%);
  color: var(--panel-strong);
  box-shadow: 0 6px 16px rgba(139, 94, 60, 0.15);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.brand-mark {
  font-size: 3.5rem;
  line-height: 1;
  animation: gentle-bob 3s ease-in-out infinite;
}

@keyframes gentle-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.intro-text {
  text-align: left;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Content Card */
.content-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(123, 92, 70, 0.08);
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.welcome {
  margin-bottom: 32px;
}

.greeting {
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
}

.description {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.95;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}

.tags span {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(219, 180, 130, 0.2) 0%, rgba(201, 149, 110, 0.1) 100%);
  color: var(--primary);
  border: 1px solid rgba(139, 94, 60, 0.15);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.tags span:hover {
  background: linear-gradient(135deg, rgba(219, 180, 130, 0.3) 0%, rgba(201, 149, 110, 0.2) 100%);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Links */
.links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.links a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--panel-strong);
  background: linear-gradient(135deg, #c9956e 0%, #a87550 100%);
  box-shadow: 0 10px 25px rgba(139, 94, 60, 0.18);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(139, 94, 60, 0.24);
}

.links a:active {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  font-style: italic;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 24px 16px;
  }

  .hero {
    flex-direction: column;
    gap: 16px;
  }

  .intro-text {
    text-align: center;
  }

  .brand-mark {
    font-size: 2.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .content-card {
    padding: 28px 20px;
  }

  .greeting {
    font-size: 1.2rem;
  }

  .description {
    font-size: 0.98rem;
  }

  .tags {
    gap: 10px;
  }

  .tags span {
    font-size: 0.85rem;
    padding: 8px 13px;
  }

  .links {
    gap: 10px;
  }

  .links a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Animation */
@media (prefers-reduced-motion: no-preference) {
  .content-card {
    animation: fade-in 0.6s ease-out;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}