:root {
  --primary: #2563eb; --accent: #f59e0b; --bg: #f8fafc;
  --text: #0f172a; --text-light: #475569; --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.06); --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 導覽列 */
header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
nav { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-light); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* 通用版面 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.section-desc { text-align: center; color: var(--text-light); max-width: 700px; margin: 0 auto 2.5rem; }

/* Hero */
.hero { background: linear-gradient(135deg, #eff6ff, #fffbeb); text-align: center; padding: 5rem 1.5rem; }
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; }
.hero p { font-size: 1.1rem; color: var(--text-light); max-width: 680px; margin: 0 auto 2rem; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
.btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); margin-left: 1rem; }
.btn-outline:hover { background: #eff6ff; }

/* 卡片網格 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--card-bg); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* 表單 */
.form-box { background: var(--card-bg); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* 頁尾 */
footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; margin-bottom: 0.5rem; color: #cbd5e1; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: 0.85rem; }

/* 手機適配 */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 1rem 1.5rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .btn-outline { margin-left: 0; margin-top: 1rem; display: block; }
}