/* ========= 全站樣式 + 動畫 ========= */

/* 全站字體與背景 */
body {
  font-family: 'Segoe UI', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background-color: #f8f9fa;
  color: #222;
  line-height: 1.6;
}

/* 標題 */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #111;
}

/* 連結 */
a {
  color: #0078d7;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #005a9e;
  text-decoration: underline;
}

/* 按鈕 */
button, .button, input[type="submit"] {
  background: linear-gradient(to right, #0078d7, #005a9e);
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  border: none;
  transition: all 0.3s ease;
}
button:hover, .button:hover, input[type="submit"]:hover {
  background: linear-gradient(to right, #005a9e, #0078d7);
  transform: scale(1.05);
}

/* 卡片 & 區塊 */
.card, .so-panel, .widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 1.2em;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.card:hover, .so-panel:hover, .widget:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* 圖片圓角 */
img {
  border-radius: 8px;
}

/* 表格 */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 0.8em;
}
table th {
  background-color: #f1f1f1;
}

/* ========= 動畫設定 ========= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 基本動畫套用到卡片與小工具 */
.card, .so-panel, .widget {
  animation: fadeInUp 0.8s ease-out both;
}

/* WooCommerce 商品動畫 - class fade-in 將由 jQuery 控制 */
.fade-in {
  animation: fadeInUp 0.8s ease-out both;
}