:root{
  --pink:#FF77B7;
  --pink-2:#FFB6D7;
  --sky:#7EC8FF;
  --sky-2:#B7E6FF;

  --ink:#0b1220;
  --page-bg:#ffffff;
  --bg-1: radial-gradient(1100px 900px at 10% 10%, rgba(255,119,183,.35), transparent 60%);
  --bg-2: radial-gradient(1000px 800px at 90% 15%, rgba(126,200,255,.35), transparent 55%);
  --bg-3: radial-gradient(900px 700px at 60% 95%, rgba(183,230,255,.35), transparent 55%);
  --bg-4: linear-gradient(180deg, #fff 0%, #f7fbff 60%, #ffffff 100%);
  --card:rgba(255,255,255,.62);
  --card2:rgba(255,255,255,.42);
  --stroke:rgba(255,255,255,.55);
  --shadow: 0 18px 60px rgba(16,24,40,.18);

  --radius:22px;
  --max:1100px;
}

*{ box-sizing:border-box; }
html,body{ min-height:100%; }
html{
  background-color: var(--page-bg);
  background:
    var(--bg-1),
    var(--bg-2),
    var(--bg-3),
    var(--bg-4);
  overflow-x:hidden;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans TC", Arial;
  color:var(--ink);
  overflow-x:hidden;
  min-height:100vh;
  background-color: var(--page-bg);
  background:
    var(--bg-1),
    var(--bg-2),
    var(--bg-3),
    var(--bg-4);
}

a{ color:inherit; text-decoration:none; }
.wrap{ position:relative; z-index:1; }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

/* blobs */
.blob{
  position:absolute;
  width:520px; height:520px; border-radius:50%;
  filter: blur(38px);
  opacity:.55;
  animation: floaty 10s ease-in-out infinite;
  pointer-events:none;
  z-index:0;
}
.blob.b1{ left:-180px; top:120px; background: radial-gradient(circle at 30% 30%, rgba(255,119,183,.85), rgba(255,182,215,.15)); }
.blob.b2{ right:-220px; top:80px; background: radial-gradient(circle at 40% 35%, rgba(126,200,255,.85), rgba(183,230,255,.10)); animation-delay:-2.5s;}
.blob.b3{ left:220px; bottom:-260px; background: radial-gradient(circle at 45% 35%, rgba(183,230,255,.85), rgba(255,182,215,.10)); animation-delay:-5s;}
@keyframes floaty{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(22px,-18px) scale(1.06); }
}

/* nav */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.35));
  border-bottom:1px solid rgba(255,255,255,.60);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.badge{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg, rgba(255,119,183,.95), rgba(126,200,255,.95));
  box-shadow: 0 12px 30px rgba(255,119,183,.18);
  display:grid; place-items:center;
  color:white; font-weight:900;
}
.brand-title{ font-size:14px; font-weight:900; line-height:1; }
.brand-sub{ font-size:12px; color:rgba(11,18,32,.65); font-weight:700; }

.nav-links{
  display:flex; align-items:center; gap:14px;
  font-weight:650;
  color: rgba(11,18,32,.78);
}
.nav-links a{
  padding:8px 10px; border-radius:12px;
  transition: background .2s ease, transform .2s ease;
}
.nav-links a:hover{ background: rgba(255,255,255,.60); transform: translateY(-1px); }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.60);
  box-shadow: 0 14px 40px rgba(16,24,40,.10);
  font-weight:750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor:pointer;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 52px rgba(16,24,40,.14); background: rgba(255,255,255,.72); }
.btn.primary{
  border: none;
  color: white;
  background: linear-gradient(135deg, rgba(255,119,183,.98), rgba(126,200,255,.98));
  box-shadow: 0 18px 60px rgba(255,119,183,.18);
}

/* hero */
header.hero{ padding: 56px 0 22px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 24px;
  align-items:stretch;
}
.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-card{ padding: 28px; position:relative; overflow:hidden; }
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.70);
  font-weight:700;
  color: rgba(11,18,32,.72);
}
.dot{
  width:10px;height:10px;border-radius:99px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 0 0 4px rgba(255,255,255,.75);
}
h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.8px;
}
.grad{
  background: linear-gradient(135deg, var(--pink) 0%, var(--sky) 65%, var(--pink-2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.lead{
  margin: 10px 0 18px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(11,18,32,.78);
  max-width: 62ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 18px; }

/* side */
.side-card{ padding: 22px; display:flex; flex-direction:column; gap:14px; }
.stat{
  display:flex; justify-content:space-between; align-items:baseline;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.70);
}
.stat b{ font-size:18px; }
.stat span{ color: rgba(11,18,32,.70); font-weight:650; }

/* sections */
section{ padding: 18px 0 32px; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin: 10px 0 12px;
}
.section-head h2{ margin:0; font-size: 22px; letter-spacing: -.2px; }
.section-head p{ margin:0; color: rgba(11,18,32,.68); font-weight: 650; }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile{ padding: 18px; }
.tile h3{ margin: 2px 0 8px; font-size: 16px; }
.tile p{ margin:0; color: rgba(11,18,32,.72); line-height:1.7; }
.annual-link{
  margin-top:14px;
  display:block;
}
.annual-link:hover{
  transform: translateY(-2px);
}
.achievement-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.achievement-card{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height: 150px;
}
.achievement-card:nth-child(2n){
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.50));
}
.achievement-label{
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(11,18,32,.55);
}
.achievement-value{
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ink);
}
.achievement-detail{
  color: rgba(11,18,32,.72);
  line-height:1.6;
}

.annual-report-page .annual-hero{
  padding-bottom:10px;
}
.annual-report-page .annual-hero .hero-card{
  text-align:left;
}

.pillrow{ margin-top: 12px; display:flex; flex-wrap:wrap; gap:8px; }
.pill{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.72);
  color: rgba(11,18,32,.70);
  font-weight: 700;
}

/* project cards */
.project{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  position:relative;
  overflow:hidden;
}
.project .tag{
  font-size: 12px; font-weight: 800;
  padding: 7px 10px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,119,183,.22), rgba(126,200,255,.22));
  border: 1px solid rgba(255,255,255,.72);
}
.proj-title{ margin:10px 0 6px; font-size: 16px; }
.proj-desc{ margin:0; color:rgba(11,18,32,.72); line-height:1.7; }
.project-cta{
  margin-top:auto;
  font-weight: 850;
  color: rgba(11,18,32,.78);
  padding-top: 6px;
}

/* 讓整張卡片像按鈕 */
.project-link{
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.project-link:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 70px rgba(16,24,40,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.50));
}
.project-link:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(126,200,255,.25), 0 22px 70px rgba(16,24,40,.18);
}

/* contact */
.contact{
  padding: 22px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1/-1; }
label{ font-weight: 800; font-size: 13px; color: rgba(11,18,32,.78); }
input, textarea{
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.62);
  padding: 12px 12px;
  font: inherit;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(126,200,255,.85);
  box-shadow: 0 0 0 4px rgba(126,200,255,.20);
}
.contact-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.contact-actions.full{ grid-column:1/-1; }
.small{ font-size: 12px; color: rgba(11,18,32,.66); font-weight: 650; line-height: 1.55; }

/* footer */
footer{ padding: 28px 0 44px; color: rgba(11,18,32,.68); font-weight: 650; }
.foot{
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,.70);
  padding-top: 18px;
}
.social{ display:flex; gap:10px; flex-wrap:wrap; }
.social a{ padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.50); border:1px solid rgba(255,255,255,.72); }
.social a:hover{ background: rgba(255,255,255,.72); }

/* reveal */
.reveal{ opacity:0; transform: translateY(10px); }
.reveal.on{ opacity:1; transform:none; transition: opacity .65s ease, transform .65s ease; }

/* dark theme */
.theme-dark{
  --ink:#e2e8f0;
  --page-bg:#0b1220;
  --bg-1: radial-gradient(1100px 900px at 10% 10%, rgba(244,114,182,.15), transparent 60%);
  --bg-2: radial-gradient(1000px 800px at 90% 15%, rgba(56,189,248,.18), transparent 55%);
  --bg-3: radial-gradient(900px 700px at 60% 95%, rgba(148,163,184,.18), transparent 55%);
  --bg-4: linear-gradient(180deg, #0b1220 0%, #111827 60%, #0b1220 100%);
  --card:rgba(15,23,42,.82);
  --card2:rgba(30,41,59,.70);
  --stroke:rgba(148,163,184,.25);
  --shadow: 0 22px 70px rgba(2,6,23,.55);
}
.theme-dark .nav{
  background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(2,6,23,.70));
  border-bottom:1px solid rgba(148,163,184,.20);
}
.theme-dark .nav-links{ color: rgba(226,232,240,.80); }
.theme-dark .nav-links a:hover{ background: rgba(30,41,59,.65); }
.theme-dark .brand-sub{ color: rgba(226,232,240,.65); }
.theme-dark .btn{
  background: rgba(30,41,59,.75);
  border:1px solid rgba(148,163,184,.35);
  color: rgba(226,232,240,.95);
  box-shadow: 0 14px 40px rgba(2,6,23,.45);
}
.theme-dark .btn:hover{
  background: rgba(30,41,59,.90);
  box-shadow: 0 18px 52px rgba(2,6,23,.60);
}
.theme-dark .kicker,
.theme-dark .stat,
.theme-dark .pill,
.theme-dark .project .tag,
.theme-dark input,
.theme-dark textarea,
.theme-dark .social a{
  background: rgba(30,41,59,.70);
  border:1px solid rgba(148,163,184,.30);
}
.theme-dark .kicker,
.theme-dark .lead,
.theme-dark .section-head p,
.theme-dark .tile p,
.theme-dark .proj-desc,
.theme-dark .project-cta,
.theme-dark .stat span,
.theme-dark .pill,
.theme-dark label,
.theme-dark .small,
.theme-dark footer{
  color: rgba(226,232,240,.75);
}
.theme-dark .project-link:hover{
  background: linear-gradient(180deg, rgba(30,41,59,.85), rgba(15,23,42,.85));
  box-shadow: 0 22px 70px rgba(2,6,23,.55);
}
.theme-dark .achievement-card:nth-child(2n){
  background: linear-gradient(180deg, rgba(30,41,59,.85), rgba(15,23,42,.85));
}
.theme-dark .achievement-label{
  color: rgba(226,232,240,.55);
}
.theme-dark .achievement-value{
  color: rgba(248,250,252,.95);
}
.theme-dark .achievement-detail{
  color: rgba(226,232,240,.75);
}
.theme-dark input:focus,
.theme-dark textarea:focus{
  border-color: rgba(56,189,248,.75);
  box-shadow: 0 0 0 4px rgba(56,189,248,.25);
}
.theme-dark .foot{
  border-top: 1px solid rgba(148,163,184,.25);
}
.theme-dark .social a:hover{ background: rgba(30,41,59,.92); }

/* responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .achievement-grid{ grid-template-columns: 1fr; }
  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .achievement-card{
    min-height: 0;
  }
}

@media (max-width: 520px){
  .nav-inner{
    flex-wrap:wrap;
  }
  .nav-actions{
    width:100%;
    justify-content:flex-start;
  }
}
