:root {
  --primary: #8b1d24; /* Deep Tuscan Red */
  --primary-hover: #6b1318;
  --accent: #d4af37; /* Gold for premium feel */
  --bg-color: #fdfbf7; /* Warm cream */
  --surface: #ffffff;
  --text-main: #2d2422; /* Espresso */
  --text-muted: #8a7e7a;
  --border: #eaddd7;
  --shadow-lg: 0 10px 25px -5px rgba(139, 29, 36, 0.1), 0 8px 10px -6px rgba(139, 29, 36, 0.05);
  --font-heading: 'Lora', 'Noto Serif TC', serif;
  --font-body: 'Inter', 'Noto Sans TC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.4; /* 縮減行高 */
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

header {
  padding: 1.5rem 5%;
  background-color: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

nav .nav-btn {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.nav-btn.client {
  background-color: var(--primary);
  color: white;
}

.nav-btn.client:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 29, 36, 0.3);
}

.nav-btn.admin {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.nav-btn.admin:hover {
  background-color: rgba(139, 29, 36, 0.05);
}

.hero {
  padding: 6rem 5% 4rem;
  text-align: center;
  background: linear-gradient(135deg, #fff9f0 0%, #fdfbf7 100%);
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  animation: slideDown 0.8s ease-out;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeIn 1s ease-out;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%; /* 縮減間距 */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; /* 縮減間距 */
  margin-bottom: 3rem; /* 縮減間距 */
}

.card {
  background-color: var(--surface);
  padding: 1.5rem; /* 縮減內距 */
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card h3 span {
  font-size: 1.5rem;
}

.card ul {
  list-style: none;
}

.card ul li {
  margin-bottom: 0.6rem; /* 縮減行距 */
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.workflow {
  text-align: center;
  margin-top: 4rem;
}

.workflow h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.workflow h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 220px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--primary);
}

.step h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer {
  background-color: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 5%;
  text-align: center;
  font-size: 0.9rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  header { flex-direction: column; gap: 1rem; }
  nav { width: 100%; display: flex; justify-content: center; }
  .nav-btn { margin: 0 0.5rem; flex: 1; text-align: center; }
}
