.contact-item a,
a.contact-item {
  text-decoration: none;
  color: inherit;
  transition: color 0.22s;
}

.contact-item a:hover,
.contact-item:hover a,
a.contact-item:hover {
  text-decoration: none;
  color: #1a1a1a;
}

/* 讓 Side Projects 內容靠上，避免內容過少時過於貼近底部 */
.projects .container {
  justify-content: flex-start!important;
}

/* 全局樣式 */
:root {
  --primary-color: #1a1a1a; /* 深黑色 */
  --secondary-color: #d4af37; /* 金色 */
  --accent-color: #d4af37; /* 金色 */
  --text-color: #e5e5e5; /* 淺灰色文字 */
  --light-bg: #2a2a2a; /* 深灰色背景 */
  --white: #1a1a1a; /* 深黑色 */
  --transition: all 0.3s ease;
  --gold-gradient: linear-gradient(
    135deg,
    #d4af37 0%,
    #fbf5b7 50%,
    #d4af37 100%
  );
  --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 只有非 hero 區塊的 container 設定 position: relative 讓 scroll-down 以內容底部為基準 */

/* 導航欄樣式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.98),
    rgba(26, 26, 26, 0.95)
  );
  box-shadow: 0 2px 20px rgba(212, 175, 55, 0.15);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 英雄區塊樣式 */
.hero {
  min-height: 100vh;
  height: 100vh;
  background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.85)),
    url("images/banner.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.title-line {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: left;
}

.hero-description p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-description .motto {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  font-style: italic;
  margin: 2rem 0;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold-gradient);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.cta-button.secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
  background: var(--gold-gradient);
  color: var(--primary-color);
  border-color: transparent;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* 關於我區塊樣式 */
.about {
  min-height: 90vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  box-shadow: none;
  padding: 0;
}

.about .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 10vw 4rem 10vw;
}

.about h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.7rem;
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--secondary-color);
  letter-spacing: 0.04em;
}

.about-content {
  width: 100%;
}

.about-text {
  font-size: 1.32rem;
  color: var(--text-color);
  line-height: 2.3;
  letter-spacing: 0.01em;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 1000px;
  margin-left: 0;
  margin-right: auto;
}

.about-text p {
  margin-bottom: 2em;
  text-align: left;
}


/* 質感強化 "Work hard and play hard!" 樣式 */
.about-text em {
  display: inline-block;
  color: #fffbe6;
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 8px #d4af37cc,
    0 0 2px #fffbe6,
    0 1px 0 #bfa13a;
  padding: 0.15em 0.5em;
  border-radius: 8px;
  background-size: 200% 200%;
  animation: goldShine 2.5s linear infinite;
  transition: box-shadow 0.3s, background 0.3s;
}

@keyframes goldShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.skills-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skills-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-list {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: var(--primary-color);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
  padding: 1.1rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.2px solid rgba(212, 175, 55, 0.1);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
  position: relative;
}

.skill-card:hover {
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.22);
  border-color: var(--secondary-color);
  transform: translateY(-6px) scale(1.025);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.skill-icon {
  width: auto;
  height: auto;
  background: none;
  margin-right: 0.7rem;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon i {
  font-size: 1.1rem;
  color: var(--secondary-color);
  filter: none;
}

.skill-card h3 {
  color: var(--secondary-color);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.skill-card ul li {
  margin-bottom: 0.4rem;
  color: var(--text-color);
  font-size: 0.98rem;
  padding-left: 1.1em;
  position: relative;
  line-height: 1.6;
}

.skill-card ul li::before {
  content: "\2022";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 1.15em;
  line-height: 1;
}

/* 專案區塊樣式 */
.projects {
  padding: 6rem 0;
  background: var(--light-bg);
}

.projects h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--dark-gradient);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-info p {
  color: var(--text-color);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tags span {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary-color);
  padding: 0.32em 1.1em 0.32em 1.1em;
  border-radius: 999px;
  font-size: 0.92rem;
  border: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.08);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
  user-select: none;
}

.project-tags span:hover {
  background: var(--secondary-color);
  color: #1a1a1a;
  box-shadow: 0 4px 18px 0 rgba(212, 175, 55, 0.18);
  font-weight: 700;
  transform: translateY(-2px) scale(1.07);
  letter-spacing: 0.07em;
  z-index: 2;
}

.project-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 600;
  margin-top: 1rem;
  transition: color 0.25s, text-shadow 0.25s;
  border-radius: 3px;
  padding: 0 0.2em;
  position: relative;
  z-index: 2;
  background: none;
}

.project-link:hover {
  color: #fffbe6;
  background: none;
  text-shadow: 0 2px 8px #d4af37cc, 0 0 2px #fffbe6;
  text-decoration: underline;
  z-index: 3;
}

/* 聯絡方式區塊樣式 */

.contact {
  min-height: 80vh;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* 美化聯絡資訊區塊 */
.contact-info {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  background: rgba(26, 26, 26, 0.92);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(212, 175, 55, 0.13),
    0 1.5px 8px rgba(0, 0, 0, 0.08);
  padding: 2.5em 3em;
  margin-bottom: 2.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.contact-info:hover {
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.22);
  border-color: var(--secondary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 12px;
  padding: 1.1em 1.4em;
  font-size: 1.13rem;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
  border: none;
  font-weight: 500;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
  min-width: 150px;
}

.contact-item:hover {
  background: var(--secondary-color);
  color: #1a1a1a;
  box-shadow: 0 4px 18px 0 rgba(212, 175, 55, 0.18);
  font-weight: 700;
  transform: translateY(-2px) scale(1.04);
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-right: 0.4em;
  transition: color 0.22s;
}

.contact-item:hover i {
  color: #1a1a1a;
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2em 0.7em;
  }
  .contact-item {
    font-size: 1rem;
    padding: 1em 1.2em;
    min-width: 120px;
  }
  .contact-item i {
    font-size: 1.2rem;
    margin-right: 0.5em;
  }
}

/* 頁腳樣式 */
.footer {
  background: var(--dark-gradient);
  color: var(--secondary-color);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.3;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .title-line {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-description p {
    font-size: 1.1rem;
  }

  .hero-description .motto {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .skill-card {
    padding: 1.2rem 1rem;
  }

  .skill-header {
    margin-bottom: 0.7rem;
  }

  .skill-icon {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }

  .skill-card h3 {
    font-size: 1rem;
  }

  .skill-card ul li {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
  }
}

.education {
  min-height: 90vh;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  box-shadow: none;
  padding: 0;
}

.education h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.education-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.education-card {
  background: var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.08);
  padding: 2rem 2.5rem;
  border: 1.5px solid rgba(212, 175, 55, 0.13);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.education-card:hover {
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.18);
  border-color: var(--secondary-color);
}

.education-school {
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.education-degree {
  color: var(--text-color);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.education-year {
  color: #b3b3b3;
  font-size: 0.98rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .education-card {
    padding: 1.2rem 1rem;
  }
}

.current-study {
  min-height: 90vh;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.current-study h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.study-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.study-card {
  background: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.1);
  padding: 1.5rem 1.3rem;
  border: 1.5px solid rgba(212, 175, 55, 0.13);
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.7;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
}

.study-card:hover {
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.18);
  border-color: var(--secondary-color);
  transform: translateY(-4px) scale(1.02);
}

.work {
  min-height: 90vh;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.work h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.work-cards {
  display: flex;
  flex-direction: row;
  gap: 2.2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.work-card {
  background: var(--dark-gradient);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.13), 0 2px 8px rgba(0,0,0,0.08);
  padding: 2.2rem 2.8rem 1.7rem 2.8rem;
  border: 1.8px solid rgba(212, 175, 55, 0.18);
  color: var(--text-color);
  font-size: 1.13rem;
  text-align: left;
  max-width: 600px;
  min-width: 320px;
  flex: 1 1 420px;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
  position: relative;
  margin: 0;
}
.work-card:not(:last-child) {
  /* 由 .work-cards gap 控制間距 */
  margin-bottom: 0;
}
.work-card:hover {
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.22), 0 4px 16px rgba(0,0,0,0.13);
  border-color: var(--secondary-color);
  transform: translateY(-6px) scale(1.025);
}
.work-card h3 {
  color: var(--secondary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.work-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
}
.work-card ul > li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1.08rem;
  padding-left: 1.2em;
  position: relative;
  line-height: 1.7;
}
.work-card ul > li::before {
  content: "\2022";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 1.15em;
  line-height: 1;
}
.work-card ul ul {
  margin-left: 1.2em;
  margin-bottom: 0.2rem;
}
.work-card ul ul li {
  font-size: 1.01rem;
  color: #e5e5e5cc;
  margin-bottom: 0.3rem;
  padding-left: 1.1em;
}
.work-card ul ul li::before {
  content: "-";
  color: var(--secondary-color);
  left: 0;
  font-size: 1em;
}
@media (max-width: 900px) {
  .work-cards {
    flex-direction: column;
    gap: 1.2rem;
  }
  .work-card {
    max-width: 98vw;
    min-width: 0;
    padding: 1.2rem 0.7rem;
    font-size: 1rem;
  }
  .work-card h3 {
    font-size: 1.08rem;
  }
  .work-card ul > li {
    font-size: 0.98rem;
  }
  .work-card ul ul li {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .study-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .study-card {
    padding: 1.1rem 0.8rem;
    font-size: 0.98rem;
  }
  .work-card {
    padding: 1.2rem 0.7rem;
    font-size: 1rem;
  }
}

.study-list-simple {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  padding: 0 1rem;
  list-style: none;
}

.study-list-simple li {
  font-size: 1.13rem;
  color: var(--text-color);
  line-height: 2.1;
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 1.8em;
}

.study-list-simple li::before {
  content: "";
  position: absolute;
  left: 0.3em;
  top: 0.9em;
  width: 0.7em;
  height: 0.7em;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: inline-block;
}

.study-list-simple strong {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .study-list-simple li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
    padding-left: 1.3em;
  }
  .study-list-simple li::before {
    width: 0.5em;
    height: 0.5em;
    top: 0.7em;
  }
}

section {
  min-height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 2;
  animation: bounceDown 1.6s infinite;
  color: var(--secondary-color);
  font-size: 2.3rem;
  opacity: 0.85;
  transition: color 0.3s, opacity 0.3s;
}

.scroll-down:hover {
  color: #bfa13a;
  opacity: 1;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(16px);
  }
}

section {
  scroll-margin-top: 80px; /* 避免被 header 蓋住，根據 header 實際高度可再調整 */
}

.about-education,
.study-work {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  min-height: 100vh;
  width: 100vw;
  padding: 0 2vw;
}

.about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.education .container,
.work .container,
.projects .container,
.skill-section .container {
  width: 100%;
  max-width: 625px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.current-study .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .about-education,
  .study-work {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1vw;
  }
  .about .container,
  .education .container,
  .current-study .container,
  .work .container {
    max-width: 98vw;
  }
  .about .container {
    padding: 2.5rem 1.2rem 2.5rem 1.2rem;
  }
  .about-text {
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 98vw;
  }
}

.contact-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
