:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #06b6d4;
  --muted: #94a3b8;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Noto Sans TC', "Helvetica Neue", Arial;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #071029);
  color: #e6eef6;
  line-height: 1.5;
}
.container {
  max-width: 900px;
  margin: 48px auto;
  padding: 24px;
  position: relative;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(2, 6, 23, 0.4));
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  color: #042f35;
}
h1 {
  margin: 0;
  font-size: 28px;
}
p.lead {
  color: var(--muted);
  margin-top: 6px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  margin-top: 20px;
}
.about,
.side {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-weight: 600;
  color: #e6eef6;
  transition: background-color 0.2s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
.btn.instagram {
  background: #E1306C;
  color: white;
  border-color: #E1306C;
}
.btn.instagram:hover {
  background: #d62976;
}
footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.photo-grid {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: space-between;
}
.photo {
  width: calc(33.333% - 14px);
  aspect-ratio: 1;
  background: #1f2937;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
  transform-origin: center;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}
.photo:hover {
  transform: translateY(-15px) scale(1.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.photo:hover img {
  transform: scale(1.2);
}
.photo:active {
  transform: translateY(-12px) scale(1.05);
  transition: all 0.1s ease;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(124, 58, 237, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.photo:hover::before {
  opacity: 1;
}
.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}
.lang-btn:hover,
.lang-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .avatar {
    width: 72px;
    height: 72px;
    font-size: 20px;
  }
  .lang-toggle {
    position: static;
    margin-bottom: 20px;
    justify-content: center;
  }
  .photo-grid {
    gap: 15px;
  }
  .photo {
    width: calc(33.333% - 10px);
  }
}
@media (max-width: 480px) {
  .photo-grid {
    flex-direction: column;
  }
  .photo {
    width: 100%;
  }
}