@charset "utf-8";

/* 基礎設定 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans TC', sans-serif;
  color: #e2e8f0;
  line-height: 1.8;

  /* 背景設定（六個屬性全部用到） */
  background-color: #0f172a;

  background-image: 
    url("img/corner1.svg"),
    url("img/corner2.svg"),
    url("img/corner3.svg"),
    url("img/corner4.svg"),
    url("img/pattern.svg");

  background-repeat: 
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    repeat;

  background-position: 
    left top,
    right top,
    left bottom,
    right bottom,
    center;

  background-size: 
    120px,
    120px,
    120px,
    120px,
    200px;

  background-attachment: 
    scroll,
    scroll,
    scroll,
    scroll,
    fixed;
}

/* 連結設定 */
a {
  color: #38bdf8;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* 頁首設計 (運用漸層、圓角、陰影) */
.main-header {
  padding: 60px 20px;
  text-align: center;
}

.logo-title {
  display: inline-block;
  font-size: 3rem;
  margin: 0;
  padding: 20px 40px;

  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  border: 2px solid #38bdf8;
  border-radius: 50px;

  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);

  /* 新增 text-shadow（重點） */
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.subtitle {
  margin-top: 15px;
  letter-spacing: 2px;
  color: #94a3b8;
}

/* 導覽列 */
.nav-bar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.nav-menu a {
  display: block;
  padding: 15px 25px;
  color: #f1f5f9;
  font-weight: 500;
}

.nav-menu a:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

/* 主容器 */
#container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 區塊卡片設計 */
.section-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  color: #38bdf8;
  border-left: 5px solid #38bdf8;
  padding-left: 15px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 文繞圖與圓形圖片 */
.imgL {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
}

.img-round {
  border-radius: 50%;
  border: 3px solid #38bdf8;
  padding: 5px;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* 標籤樣式 (Badge) */
.badge {
  background: #334155;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #f1f5f9;
  border: 1px solid #475569;
}

/* 興趣清單 */
.interest-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
}

.interest-list li::before {
  content: "▹";
  color: #38bdf8;
  margin-right: 10px;
}

/* 偽元素圖示應用 (Blank & Mail) */
a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8rem;
  opacity: 0.7;
}

a[href^="mailto:"]::before {
  content: "✉ ";
}

/* 按鈕樣式 */
.more-link {
  margin-top: 30px;
  text-align: right;
}

.btn-github {
  background: linear-gradient(to right, #38bdf8, #818cf8);
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
}

.btn-github:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* 清除浮動 */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* 頁尾 */
.main-footer {
  text-align: center;
  padding: 40px;
  color: #64748b;
  border-top: 1px solid #1e293b;
}

/* 響應式微調 */
@media (max-width: 600px) {
  .imgL {
    float: none;
    margin: 0 auto 20px;
    text-align: center;
  }
}
