main {
  background-color: #f4f7fa;
  color: #333;
  font-family: "MyIansui", serif;
}

/* 主要內容容器 */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* 網格列表 */
#list-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.job-card {
  background-color: #e3e8ef;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.job-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

/* 公司名 */
.company-name {
  font-size: 24px;
  color: #2e4a75;
  margin: 0 0 20px 0;
}

/* 職稱 */
.job-title {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* 學歷 */
.tags {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-more {
  background-color: #2c3e50;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
  border: none;
}

.btn-more:hover {
  background-color: #3d808a;
}

/* 詳情視圖(通用樣式) */
.detail-page {
  display: none;
  animation: fadeIn 0.3s; /* 淡入動畫 */
}

.detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.detail-row {
  margin-bottom: 10px;
}

.job-description {
  margin: 0;
}

.description-block ol {
  margin-left: 10px;
  margin-top: 5px;
}

/* 返回按鈕 */
.back-link {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 20px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.back-link:hover {
  border-bottom: 1px solid #000;
}

/* 了解更多頁面-公司名稱 */
.detail-title {
  font-size: 40px;
  color: #2c3e50;
  margin: 0 0 20px;
}

/* 各標籤 */
.label {
  font-weight: bold;
  color: #555;
  font-size: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
