/* ============================================================
   basic-style token 已由 base.html 載入的 basic-style.css 提供
   此檔只包含本頁專屬樣式，請勿在此重複定義全站共用規則
   ============================================================ */

/* ── 頂部最新股東會資訊列 ────────────────────────────────────── */
.set-recent-info {
  display: flex;
}

.set-recent-info .set-info {
  margin-right: 2rem;
}

.set-recent-info .set-btn-video-online {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent, #1d8fe0) 0%, var(--color-accent-dark, #0d6fbb) 100%);
  padding: 0.6rem 1.25rem;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(29, 143, 224, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.set-recent-info .set-btn-video-online::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.25s ease;
}

.set-recent-info .set-btn-video-online:hover {
  background: linear-gradient(135deg, #187ec9 0%, #095a99 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(13, 111, 187, 0.45);
  transform: translateY(-2px);
}

.set-recent-info .set-btn-video-online:hover::before {
  transform: scale(1.15);
}

.set-recent-info .set-btn-video-online:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(29, 143, 224, 0.3);
}

/* ── 表格容器卡片化 ─────────────────────────────────────────── */
.table-wrapper {
  background-color: var(--color-bg, #ffffff);
  border-radius: 8px;
  border: 1px solid var(--color-border, #dce3ed);
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.05);
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-table-inner {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

/* 表頭顏色：採用品牌深藍 #0d6fbb */
.mobile-table-inner .set-table-head {
  background-color: var(--color-accent-dark, #0d6fbb);
}

.mobile-table-inner .set-table-head td {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  padding: 0.95rem 1rem;
  border: none;
  white-space: nowrap;
}

/* 表格內容列 */
.mobile-table-inner tr:not(.set-table-head) {
  transition: background-color 0.2s ease;
}

.mobile-table-inner tr:not(.set-table-head):hover {
  background-color: rgba(29, 143, 224, 0.05);
}

.mobile-table-inner td.set-tr-boder-bottom {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text, #0c2340);
  border: none;
  border-bottom: 1px solid var(--color-border, #dce3ed);
  vertical-align: middle;
}

.mobile-table-inner tr:last-child td.set-tr-boder-bottom {
  border-bottom: none;
}

.mobile-table-inner td.set-tr-boder-bottom:first-child {
  font-weight: 500;
  color: var(--color-primary, #0c2340);
}

.mobile-table-inner td.set-tr-boder-bottom:nth-child(2) {
  color: var(--color-text-muted, #5a6b7e);
  font-variant-numeric: tabular-nums;
}

/* ── PDF 下載圖示微互動 ─────────────────────────────────────── */
.mobile-table-inner td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-table-inner td a:hover {
  background-color: rgba(29, 143, 224, 0.12);
}

.mobile-table-inner td img {
  width: 32px;
  height: 32px;
  /* 黑色 SVG → 官方企業亮藍 #1d8fe0 */
  filter: invert(54%) sepia(96%) saturate(2423%) hue-rotate(180deg) brightness(87%) contrast(101%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mobile-table-inner td a:hover img {
  /* hover 加深為企業深藍 #0d6fbb */
  filter: invert(36%) sepia(82%) saturate(2250%) hue-rotate(190deg) brightness(85%) contrast(98%);
  transform: scale(1.1);
  cursor: pointer;
}

/* ── 手機滑動提示 ───────────────────────────────────────────── */
.mobile-touch {
  display: none;
  font-weight: 500;
  color: var(--color-accent, #1d8fe0);
  font-size: 0.85rem;
  letter-spacing: 0.03rem;
}

/* ── 專案既有斷點（僅 900px 與 600px） ──────────────────────── */
@media (max-width: 900px) {
  .set-padding-lr {
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  .set-recent-info {
    flex-wrap: wrap;
  }

  .set-recent-info .set-btn-video-online {
    align-self: flex-start;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .mobile-touch {
    display: block;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .mobile-table-inner {
    min-width: 680px;
    width: 100%;
  }
}