﻿/* =========================================================
   investor-area.css
   用途：投資人專欄（Investor_area_01~04.aspx）
   作用範圍：.investor-area-page
========================================================= */

.investor-area-page {
  --inv-primary: #0c596f;
  --inv-accent: #19a7b8;
  --inv-text: #1a3040;
  --inv-muted: #7a94a3;
  --inv-border: #dce4ea;
  --inv-bg-light: #f5f8fa;
  --inv-bg-panel: #f0f5f8;
}

.investor-area-content {
  width: 100%;
}

.investor-area-panel {
  padding: 32px 36px;
  background: #ffffff;
  border: 1px solid var(--inv-border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(7, 41, 56, 0.05);
}

.investor-area-panel h3 {
  margin-bottom: 1rem;
}

.investor-area-panel h5 {
  margin-bottom: 1.25rem;
  color: var(--inv-text);
  font-size: 1rem;
  line-height: 1.7;
}

.investor-area-panel h5 a {
  color: var(--inv-primary);
  font-weight: 700;
  text-decoration: underline;
}

.investor-area-panel h5 a:hover {
  color: var(--inv-accent);
}

/* 步驟導引（股價／股利） */
.investor-area-content .zenlogic-steps {
  display: flex;
  overflow: hidden;
  line-height: 1.5;
  border: 2px solid var(--inv-primary);
  padding: 0;
  margin: 0 0 2rem;
}

.investor-area-content .zenlogic-steps .step {
  flex: 1;
  color: var(--inv-muted);
  padding: 10px 0 10px 55px;
  margin: 0;
  background: #fff;
  position: relative;
  font-size: 15px;
}

.investor-area-content .zenlogic-steps .step:first-child {
  padding-left: 20px;
}

.investor-area-content .zenlogic-steps .step:last-child {
  padding-right: 10px;
}

.investor-area-content .zenlogic-steps .step.active {
  background-color: var(--inv-primary);
  color: #fff;
}

.investor-area-content .zenlogic-steps .step.active:after {
  border-left-color: var(--inv-primary);
}

.investor-area-content .zenlogic-steps .step:after {
  content: " ";
  display: block;
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 30px solid #fff;
  position: absolute;
  top: 50%;
  margin-top: -50px;
  left: 100%;
  z-index: 2;
}

.investor-area-content .zenlogic-steps .step:before {
  content: " ";
  display: block;
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 30px solid #fff;
  position: absolute;
  top: 50%;
  margin-top: -50px;
  margin-left: 2px;
  left: 100%;
  z-index: 1;
}

.investor-area-figure {
  text-align: center;
  margin: 1.5rem 0 2.5rem;
}

.investor-area-figure img {
  max-width: 100%;
  height: auto;
  padding: 1rem;
  border: 1px solid var(--inv-border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(7, 41, 56, 0.08);
}

/* Report tabs / panels（與財務報告同架構） */
.investor-area-block {
  width: 100%;
  max-width: 100%;
}

.report-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--inv-bg-panel);
  border: 1px solid var(--inv-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.report-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 18px;
  color: var(--inv-muted);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.report-tab + .report-tab {
  border-left: 1px solid var(--inv-border);
}

.report-tab.active {
  color: var(--inv-text);
  background: #ffffff;
  font-weight: 800;
}

.report-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--inv-primary), var(--inv-accent));
}

.report-panels {
  width: 100%;
  padding: 36px 40px;
  background: #ffffff;
  border: 1px solid var(--inv-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px rgba(7, 41, 56, 0.05);
}

.report-panel {
  display: none;
  width: 100%;
}

.report-panel.active {
  display: block;
}

.report-accordion {
  width: 100%;
  border: 1px solid var(--inv-border);
  border-radius: 8px;
  overflow: hidden;
}

.report-year {
  width: 100%;
  border-bottom: 1px solid var(--inv-border);
}

.report-year:last-child {
  border-bottom: none;
}

.report-year-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  color: var(--inv-text);
  font-weight: 700;
  text-align: left;
  background: #ffffff;
  border: none;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.report-year-toggle:hover,
.report-year-toggle:focus-visible {
  background: var(--inv-bg-light);
  color: var(--inv-primary);
}

.report-year-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
}

.report-year-toggle > i {
  margin-left: auto;
  font-size: 16px;
  color: var(--inv-muted);
  flex-shrink: 0;
}

.report-year-body {
  width: 100%;
  padding: 20px;
  background: var(--inv-bg-light);
  border-top: 1px solid var(--inv-border);
}

/* 股東常會資料表格 */
.area-data-table {
  margin-bottom: 0;
}

.area-data-table table {
  margin-bottom: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.area-data-table thead th {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--inv-primary), var(--inv-accent));
  border: none;
  white-space: nowrap;
}

.area-data-table tbody td {
  vertical-align: middle;
  color: var(--inv-text);
}

.area-data-table tbody td a {
  color: var(--inv-primary);
  font-weight: 700;
  text-decoration: none;
}

.area-data-table tbody td a:hover {
  color: var(--inv-accent);
}

.area-data-table .pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 法人說明會卡片 */
.area-presentation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.area-presentation-card {
  height: 100%;
  padding: 24px 22px;
  background: var(--inv-bg-light);
  border: 1px solid var(--inv-border);
  border-radius: 10px;
}

.area-presentation-card h5 {
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--inv-primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.area-presentation-card ul {
  margin-bottom: 0;
  color: var(--inv-text);
  line-height: 1.85;
}

.area-presentation-card ul a {
  color: var(--inv-primary);
  font-weight: 600;
}

.area-presentation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 1rem;
}

.area-presentation-actions .btn {
  min-width: 9rem;
  padding: 0.55rem 1rem;
  color: var(--inv-primary);
  font-weight: 700;
  border: 2px solid var(--inv-primary);
  border-radius: 999px;
  background: #fff;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.area-presentation-actions .btn:hover {
  color: #fff;
  background: var(--inv-primary);
  border-color: var(--inv-primary);
}

/* 投資人問答區手風琴 */
.area-faq-accordion {
  border: 1px solid var(--inv-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(7, 41, 56, 0.05);
}

.area-faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid var(--inv-border);
}

.area-faq-accordion .accordion-item:last-child {
  border-bottom: none;
}

.area-faq-accordion .accordion-button {
  padding: 16px 20px;
  color: var(--inv-text);
  font-size: 15px;
  font-weight: 700;
  background: #ffffff;
  box-shadow: none;
}

.area-faq-accordion .accordion-button:not(.collapsed) {
  color: #ffffff;
  background: linear-gradient(135deg, var(--inv-primary), var(--inv-accent));
}

.area-faq-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(25, 167, 184, 0.35);
}

.area-faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.area-faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  text-align: left;
}

.area-faq-subject {
  flex: 1 1 auto;
  min-width: 0;
}

.area-faq-date {
  color: var(--inv-muted);
  font-size: 13px;
  font-weight: 600;
}

.area-faq-accordion .accordion-button:not(.collapsed) .area-faq-date {
  color: rgba(255, 255, 255, 0.9);
}

.area-faq-accordion .accordion-body h6 {
  margin-bottom: 0.75rem;
  color: var(--inv-text);
  line-height: 1.85;
}

.area-faq-accordion .accordion-body h6 span {
  color: var(--inv-primary);
  font-weight: 800;
}

/* 分頁 */
.area-pagination {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--inv-border);
}

@media (max-width: 1199.98px) {
  .investor-area-content .zenlogic-steps {
    overflow: visible;
    border: none;
    flex-direction: column;
    gap: 0;
  }

  .investor-area-content .zenlogic-steps .step {
    padding: 10px 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.8);
  }

  .investor-area-content .zenlogic-steps .step:first-child {
    padding-left: 15px;
  }

  .investor-area-content .zenlogic-steps .step:last-child {
    padding-right: 15px;
    border-bottom: 0;
  }

  .investor-area-content .zenlogic-steps .step br {
    display: none;
  }

  .investor-area-content .zenlogic-steps .step:after,
  .investor-area-content .zenlogic-steps .step:before {
    display: none;
  }

  .area-presentation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .investor-area-panel {
    padding: 22px 18px;
  }

  .report-tab {
    min-height: 52px;
    font-size: 1rem;
    padding: 0 12px;
  }

  .report-panels {
    padding: 20px 16px;
  }

  .report-year-toggle {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .report-year-body {
    padding: 16px 14px;
  }
}

@media (max-width: 575.98px) {
  .report-tabs {
    display: flex;
    border-radius: 999px;
    border: 1px solid var(--inv-border);
    background: var(--inv-bg-panel);
    padding: 4px;
    gap: 4px;
    border-bottom: 1px solid var(--inv-border);
  }

  .report-tab {
    flex: 1;
    min-height: 40px;
    font-size: 0.88rem;
    padding: 0 10px;
    border-radius: 999px;
    border-left: none;
  }

  .report-tab + .report-tab {
    border-left: none;
  }

  .report-tab.active {
    background: var(--inv-primary);
    color: #ffffff;
  }

  .report-tab.active::before {
    display: none;
  }

  .report-panels {
    margin-top: 10px;
    padding: 16px 12px;
    border-radius: 8px;
    border: 1px solid var(--inv-border);
  }
}
