:root {
  --sage: #a8af8f;
  --sage-dark: #7c8469;
  --sage-soft: #cbd1b5;
  --cream: #f5f3ec;
  --ivory: #fcfbf7;
  --stone: #d9d6c8;
  --text: #555849;
  --heading: #6e755b;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(112, 117, 90, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input {
  font: inherit;
}
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}
.section {
  padding: 88px 0;
}
.section-sm {
  padding: 56px 0;
}
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(168, 175, 143, 0.12);
  color: var(--sage-dark);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 18px 0 16px;
  font-weight: 500;
}
.section-desc {
  max-width: 680px;
  font-size: 1.05rem;
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(252, 251, 247, 0.9);
  border-bottom: 1px solid rgba(168, 175, 143, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 46px;
  width: auto;
}
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--heading);
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(168, 175, 143, 0.12);
  color: var(--sage-dark);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  border-color: rgba(168, 175, 143, 0.4);
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 52px;
  background:
    radial-gradient(circle at 20% 15%, rgba(203, 209, 181, 0.35), transparent 24%),
    linear-gradient(180deg, #fbfaf6 0%, #f4f1e7 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1,
.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  color: var(--heading);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
  margin: 18px 0 20px;
  font-weight: 500;
}
.hero p,
.page-hero p {
  font-size: 1.08rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(168, 175, 143, 0.18);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.info-item {
  background: rgba(255,255,255,0.72);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(168, 175, 143, 0.12);
}
.info-item strong {
  display: block;
  color: var(--heading);
  margin-bottom: 6px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(168, 175, 143, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--heading);
  font-size: 1.8rem;
  margin: 0 0 10px;
  font-weight: 500;
}
.highlight {
  background: linear-gradient(180deg, #f8f6ef 0%, #efede3 100%);
}
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.product-panel {
  min-height: 580px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-panel.image {
  background: linear-gradient(160deg, #f7f5ee 0%, #ebe8dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}
.product-panel.copy {
  background: linear-gradient(180deg, rgba(168,175,143,0.10), rgba(168,175,143,0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
}
.product-panel.copy .inner {
  max-width: 500px;
}
.product-panel.copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--heading);
  margin: 12px 0 18px;
  font-weight: 500;
}
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}
.feature-list li {
  list-style: none;
  background: rgba(255,255,255,0.72);
  padding: 14px 16px;
  border-radius: 16px;
}
.page-hero {
  padding: 88px 0 56px;
  background: linear-gradient(180deg, #faf8f2 0%, #f1eee4 100%);
}
.page-hero.center {
  text-align: center;
}
.page-hero.center p {
  margin: 0 auto;
}
.form-card {
  background: var(--white);
  border: 1px solid rgba(168, 175, 143, 0.16);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.form-grid {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  gap: 10px;
}
label {
  font-weight: 600;
  color: var(--heading);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(168, 175, 143, 0.24);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(168, 175, 143, 0.14);
}
textarea { min-height: 120px; resize: vertical; }
.result-card {
  display: none;
  margin-top: 20px;
  padding: 24px;
  border-radius: 22px;
  background: #f7f5ee;
  border: 1px solid rgba(168, 175, 143, 0.18);
}
.result-card.show { display: block; }
.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
}
.kv strong { color: var(--heading); }
.login-layout {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-visual {
  background: linear-gradient(180deg, #f8f6ee 0%, #ede9db 100%);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}
.login-panel .form-card {
  max-width: 470px;
  width: 100%;
}
.footer {
  background: #f0ede2;
  border-top: 1px solid rgba(168, 175, 143, 0.16);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer small { color: #737761; }
.tagline {
  font-family: "Cormorant Garamond", serif;
  color: var(--heading);
  font-size: 1.2rem;
}
.badge-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.badge {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(168, 175, 143, 0.14);
  color: var(--sage-dark);
  font-size: 0.92rem;
}
@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .product-showcase,
  .login-layout {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .hero,
  .page-hero,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero h1,
  .page-hero h1 {
    line-height: 1.02;
  }
  .product-panel,
  .product-panel.copy {
    min-height: auto;
  }
  .kv {
    grid-template-columns: 1fr;
  }
}
