:root{
  --bg: #0b0f19;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.10);
  --brand: #7c5cff;
  --brand2: #2dd4bf;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 22px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans TC", Arial, sans-serif;
  background: radial-gradient(1100px 600px at 20% 0%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(900px 520px at 90% 20%, rgba(45,212,191,.18), transparent 60%),
              var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
img{ display:block; max-width:100%; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.55);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.brand-logo{
  width: 34px;      /* ✅ LOGO固定大小 */
  height: 34px;     /* ✅ 不會爆 */
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.brand-name{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-link{
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav-link:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}
.nav-link.is-active{
  color: var(--text);
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
}

.hero{
  padding: 34px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.page-hero{
  padding: 28px 0 8px;
}

.section{
  padding: 22px 0 34px;
}

.h1{
  margin: 10px 0 10px;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.h2{
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.muted{ color: var(--muted); }

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15.5px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}
.btn.primary{
  border-color: rgba(124,92,255,.40);
  background: rgba(124,92,255,.22);
}
.btn.small{
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 13px;
}
.btn.ghost{
  background: transparent;
}

.cta-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.meta-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 860px){
  .meta-grid{ grid-template-columns: 1fr; }
}
.meta-card{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.meta-title{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.meta-value{
  font-weight: 700;
  font-size: 14px;
}

.profile-card,
.note-card,
.contact-card{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card{ padding: 0; }
.profile-body{ padding: 14px 14px 16px; }
.profile-name{ font-weight: 900; font-size: 16px; }
.profile-sub{ color: var(--muted); font-size: 13px; margin-top: 3px; }

.headshot{
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: rgba(255,255,255,.04);
}
@media (max-width: 860px){
  .headshot{ height: 240px; }
}

.quick-links{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}
.chip:hover{ color: var(--text); }

.note-card{
  margin-top: 14px;
  padding: 14px;
}
.note-title{
  font-weight: 800;
  margin-bottom: 6px;
}
.note-text{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tag-row{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag{
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.site-footer{
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
  gap: 10px;
  flex-wrap: wrap;
}

.project-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.project-card{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.project-top{
  padding: 16px;
}
.project-title-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45,212,191,.35);
  background: rgba(45,212,191,.14);
  color: rgba(255,255,255,.88);
}
.badge.ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.project-desc{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.project-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.project-expand{
  display:none;
  padding: 0 16px 16px;
}
.project-card.is-open .project-expand{
  display:block;
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 12px 0 12px;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.link-row{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.link{
  color: rgba(124,92,255,.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover{ opacity: .9; }

.contact-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.kv{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.kv-row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 12px 12px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.kv-row:last-child{ border-bottom: none; }
.kv-k{ color: var(--muted); font-size: 13px; }
.kv-v{ color: var(--text); font-size: 13.5px; }
