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

/* 性能優化 */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* 減少重繪和回流 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* GPU 加速優化 */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 字體系統 */
body {
  font-family: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Noto Sans TC", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #34495e;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}
/* 現代化導覽列設計 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s ease;

  /* 讓標題在桌面寬度時盡量單行顯示，避免被擠斷行 */
  @media (min-width: 992px) {
    .nav-logo a {
      white-space: nowrap;
    }
  }
}

.nav-logo a:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 25px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: #7f8c8d;
  margin-left: 0.3rem;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: #667eea;

  /* 桌面：當連結較多時自動換行且保持間距，維持既有樣式 */
}

/* 桌面：當連結較多時自動換行且保持間距，維持既有樣式 */
@media (min-width: 1025px) {
  .nav-menu {
    flex-wrap: nowrap; /* 一排顯示，不換行 */
    justify-content: space-between; /* 平均分布到整個右側欄寬度 */
    gap: 1.2rem;
    width: 100%;
    flex: 1 1 auto;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap; /* 文字不換行 */
  }
  .nav-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
  }
}

/* 介於 769~1200px：字級略縮，留出更多空間 */
@media (max-width: 1200px) and (min-width: 769px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 0.55rem 0.8rem;
  }
  .nav-subtitle {
    font-size: 0.72rem;
  }
}

/* 導覽列項目 hover 效果 */
.nav-link:hover .nav-subtitle {
  color: #667eea;
}

/* 漢堡選單樣式 */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background: #2c3e50;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* 漢堡選單動畫 */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}
/* 主要區域樣式 */
body main section.main-area {
  min-height: 80vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
}

body main section.main-area div.info {
  flex-basis: 500px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

body main section.main-area div.info h1 {
  margin-bottom: 1.5rem;
  text-align: center;
}

body main section.main-area div.info h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 1.5rem;
  text-align: justify;
}

body main section.main-area div.info a {
  color: white;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-block;
  margin-top: 2.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
}

body main section.main-area div.info a:hover {
  opacity: 0.9;
}

body main section.main-area div.img-area {
  flex-basis: 450px;
  margin: 1rem;
  text-align: center;
}

body main section.main-area div.img-area img {
  width: 90%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease;
}

body main section.main-area div.img-area img:hover {
  opacity: 0.95;
}
/* 關於我區塊樣式 */
body main section.about-me {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  position: relative;
}

body main section.about-me::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

body main section.about-me section.description {
  width: 70%;
  max-width: 800px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

body main section.about-me section.description h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body main section.about-me section.description p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

body main section.about-me section.description .progress-bar-area {
  margin-top: 3rem;
}

body main section.about-me section.description .progress-bar-area p {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
}

body main section.about-me section.description .progress-bar-area .progress {
  height: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 前端技能區塊樣式 */
.frontend-skills-section {
  margin-top: 3rem;
  padding: 2rem 0;
}

.skills-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-intro {
  background: rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border-left: 4px solid #667eea;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skills-intro p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.skills-intro .highlight {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  padding: 2px 8px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.95em;
}

.skills-cards {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
}

.skill-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.skill-number {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.skill-card .skill-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.skill-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

.skill-content p:last-child {
  margin-bottom: 0;
}

.skill-content strong {
  color: #667eea;
  font-weight: 600;
}

.skill-content code {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.skill-content .highlight {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  padding: 2px 8px;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  font-size: 0.9em;
}
/* 履歷區塊樣式 */
body main section.resume {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  min-height: 100vh;
}

body main section.resume section.table {
  flex: 5 0 500px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

body main section.resume section.table table {
  --bs-table-bg: none;
  border-collapse: collapse;
  width: 100%;
}

body main section.resume section.table table tr {
  border-bottom: 2px solid rgba(108, 117, 125, 0.2);
  transition: background-color 0.2s ease;
}

body main section.resume section.table table tr:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1) 0%,
    rgba(255, 154, 158, 0.1) 100%
  );
}

body main section.resume section.table table tr td {
  padding: 1.5rem;
  vertical-align: top;
}

body main section.resume section.table table tr td:first-child {
  font-weight: 600;
  color: #2c3e50;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 10px 0 0 10px;
}

body main section.resume section.table table tr td img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

/* 專長區塊樣式 */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 1.2rem;
  border-left: 4px solid #667eea;
  transition: all 0.2s ease;
}

.skill-category:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.skill-category p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.frontend-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  justify-content: flex-start;
  align-items: center;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.skill-tag img {
  width: 16px;
  height: 16px;
}

.learning-note {
  color: #27ae60;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.5rem 0 0 0;
  font-style: italic;
}
body main section.resume section.picture {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 1rem;
}

body main section.resume section.picture img {
  width: 85%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 2;
}

body main section.resume section.picture img:hover {
  opacity: 0.95;
}

body main section.resume section.picture div.greenRect {
  width: 25vw;
  height: 70vh;
  border: 8px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  position: absolute;
  top: 30px;
  left: 60px;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

body main section.resume section.picture div.greenRect2 {
  width: 40vw;
  height: 30vh;
  border: 8px solid rgba(255, 154, 158, 0.4);
  border-radius: 15px;
  position: absolute;
  top: 250px;
  left: -200px;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 154, 158, 0.1) 0%,
    rgba(254, 207, 239, 0.1) 100%
  );
}

body main section.resume section.picture div.greenRect3 {
  width: 35vw;
  height: 25vh;
  border: 8px solid rgba(168, 237, 234, 0.5);
  border-radius: 25px;
  position: absolute;
  top: -20px;
  left: -80px;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(168, 237, 234, 0.1) 0%,
    rgba(254, 214, 227, 0.1) 100%
  );
}
body main .pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}
body main .pdf-viewer iframe {
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  height: 80vh;
}
body main .pdf-viewer h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

/* 響應式設計 */
@media screen and (max-width: 1024px) {
  body main section.main-area {
    padding: 3rem 1rem;
  }

  body main section.about-me {
    padding: 4rem 1rem;
  }

  body main section.about-me section.description {
    width: 85%;
    padding: 2rem;
  }

  .skills-title {
    font-size: 1.8rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  body main section.resume {
    padding: 3rem 1rem;
  }
}

@media screen and (max-width: 800px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  body nav ul {
    padding: 0 1rem;
  }

  body nav ul li {
    margin: 0 0.75rem;
  }

  body main section.main-area div.info {
    flex-basis: 100%;
    margin: 0.5rem;
  }

  body main section.main-area div.img-area {
    flex-basis: 100%;
    margin: 0.5rem;
  }

  body main section.about-me section.description {
    width: 90%;
    padding: 1.5rem;
  }

  body main section.about-me section.description h2 {
    font-size: 2rem;
  }

  .skills-title {
    font-size: 1.6rem;
  }

  .skills-intro {
    padding: 1rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-card .skill-title {
    font-size: 1.2rem;
  }

  body main section.resume {
    flex-direction: column;
    overflow-x: auto;
  }

  body main section.resume section.table {
    flex-basis: auto;
    margin: 0.5rem;
  }

  body main section.resume section.picture {
    flex-basis: auto;
    margin: 0.5rem;
  }

  body main section.resume section.picture div.greenRect,
  body main section.resume section.picture div.greenRect2,
  body main section.resume section.picture div.greenRect3 {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  h1 {
    font-size: 2rem;
  }

  body nav {
    position: static;
    padding: 1rem 0;
  }

  body nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  body nav ul li {
    margin: 0;
  }

  body nav ul li a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  body main section.main-area {
    padding: 2rem 1rem;
  }

  body main section.main-area div.info {
    padding: 1.5rem;
  }

  body main section.about-me {
    padding: 3rem 1rem;
  }

  body main section.about-me section.description {
    width: 95%;
    padding: 1rem;
  }

  body main section.about-me section.description h2 {
    font-size: 1.8rem;
  }

  .skills-title {
    font-size: 1.4rem;
  }

  .skills-intro {
    padding: 1rem;
    font-size: 1rem;
  }

  .skill-card {
    padding: 1rem;
  }

  .skill-card .skill-title {
    font-size: 1.1rem;
  }

  .skill-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -8px;
    right: 15px;
  }

  body main section.resume {
    padding: 2rem 1rem;
  }

  body main section.resume section.table {
    padding: 1rem;
  }

  body main section.resume section.table table tr td {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* 新增響應式設計 - 導覽列 */

/* 平板電腦 (768px - 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    gap: 1.2rem;
  }
}

/* 平板專用漢堡選單 (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
  .nav-subtitle {
    display: block;
    margin-left: 0;
    margin-top: 0.2rem;
    font-size: 0.8rem;
  }
}

/* 大型行動裝置 (481px - 768px) */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }

  .nav-subtitle {
    display: block;
    margin-left: 0;
    margin-top: 0.2rem;
    font-size: 0.75rem;
  }

  .skills-container {
    gap: 1rem;
  }

  .skill-category {
    padding: 1rem;
  }

  .frontend-skills {
    gap: 0.5rem;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* 大型行動裝置 (425px * 575px) */
@media (max-width: 425px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo a {
    font-size: 1.4rem;
  }

  /* 主要區域優化 */
  body main section.main-area {
    padding: 2rem 1rem;
    min-height: 65vh;
  }

  body main section.main-area div.info h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
  }

  body main section.main-area div.info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  body main section.main-area div.info a {
    font-size: 1.1rem;
    padding: 0.9rem 1.8rem;
  }

  /* 關於我區塊 */
  body main section.about-me section.description {
    width: 92%;
    padding: 1.8rem;
  }

  body main section.about-me section.description h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }

  body main section.about-me section.description p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* 專長區塊 */
  .skill-category {
    padding: 1.1rem;
    margin-bottom: 1rem;
  }

  .skill-category h4 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }

  .skill-category p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .skill-tag {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
    margin: 0.2rem;
  }

  .skill-tag img {
    width: 15px;
    height: 15px;
  }

  /* 履歷表格 */
  body main section.resume section.table table tr td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  body main section.resume section.table table tr td:first-child {
    width: 90px;
    min-width: 90px;
    font-size: 0.85rem;
  }
}

/* 中型行動裝置 (375px * 575px) */
@media (max-width: 375px) {
  .nav-container {
    padding: 0 0.8rem;
  }

  .nav-logo a {
    font-size: 1.3rem;
  }

  /* 主要區域優化 */
  body main section.main-area {
    padding: 1.8rem 0.8rem;
    min-height: 60vh;
  }

  body main section.main-area div.info h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  body main section.main-area div.info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.3rem;
  }

  body main section.main-area div.info a {
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }

  /* 關於我區塊 */
  body main section.about-me section.description {
    width: 95%;
    padding: 1.5rem;
  }

  body main section.about-me section.description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  body main section.about-me section.description p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* 專長區塊 */
  .skill-category {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }

  .skill-category h4 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    gap: 0.6rem;
  }

  .skill-category p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .skill-icon {
    width: 20px;
    height: 20px;
  }

  .skill-tag {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    margin: 0.15rem;
  }

  .skill-tag img {
    width: 14px;
    height: 14px;
  }

  /* 履歷表格 */
  body main section.resume section.table table tr td {
    padding: 0.9rem;
    font-size: 0.85rem;
  }

  body main section.resume section.table table tr td:first-child {
    width: 80px;
    min-width: 80px;
    font-size: 0.8rem;
  }
}

/* 小型行動裝置 (320px * 575px) */
@media (max-width: 320px) {
  .nav-container {
    padding: 0 0.5rem;
  }

  .nav-logo a {
    font-size: 1.2rem;
  }

  /* 主要區域優化 */
  body main section.main-area {
    padding: 1.5rem 0.5rem;
    min-height: 55vh;
  }

  body main section.main-area div.info h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  body main section.main-area div.info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  body main section.main-area div.info a {
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
  }

  /* 關於我區塊 */
  body main section.about-me {
    padding: 2.5rem 0.5rem;
  }

  body main section.about-me section.description {
    width: 98%;
    padding: 1.2rem;
  }

  body main section.about-me section.description h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  body main section.about-me section.description p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* 專長區塊 */
  .skills-container {
    gap: 0.8rem;
  }

  .skill-category {
    padding: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .skill-category h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
  }

  .skill-category p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .skill-icon {
    width: 18px;
    height: 18px;
  }

  .frontend-skills {
    gap: 0.3rem;
  }

  .skill-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
  }

  .skill-tag img {
    width: 12px;
    height: 12px;
  }

  .learning-note {
    font-size: 0.8rem;
    margin-top: 0.4rem;
  }

  /* 履歷表格 */
  body main section.resume {
    padding: 2rem 0.5rem;
  }

  body main section.resume section.table {
    padding: 0.8rem;
  }

  body main section.resume section.table table tr td {
    padding: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  body main section.resume section.table table tr td:first-child {
    width: 70px;
    min-width: 70px;
    font-size: 0.75rem;
  }

  /* 圖片區域 */
  body main section.main-area div.img-area img,
  body main section.resume section.picture img {
    width: 95%;
  }

  /* 觸控優化 */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 文字選取優化 */
  body main section.main-area div.info h1,
  body main section.about-me section.description h2 {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* 極小螢幕的特殊處理 */
  .skill-tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }

  /* 確保重要按鈕可點擊 */
  body main section.main-area div.info a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 超小螢幕優化 (280px 以下) */
@media (max-width: 280px) {
  .nav-logo a {
    font-size: 1.1rem;
  }

  body main section.main-area div.info h1 {
    font-size: 1.6rem;
  }

  body main section.main-area div.info p {
    font-size: 0.85rem;
  }

  .skill-category h4 {
    font-size: 0.9rem;
  }

  .skill-category p {
    font-size: 0.78rem;
  }

  .skill-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    max-width: 100px;
  }

  body main section.resume section.table table tr td {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  body main section.resume section.table table tr td:first-child {
    width: 60px;
    min-width: 60px;
    font-size: 0.7rem;
  }
} /*# sourceMappingURL=style.css.map */
