/* ========================================
           通用 Flex 佈局組件
        ======================================== */
/* .flex-container {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-justify-between {
  justify-content: space-between;
}

.flex-justify-center {
  justify-content: center;
}

.flex-align-start {
  align-items: flex-start;
}

.flex-align-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
} */

/* ========================================
           通用連結組件
        ======================================== */
.link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.link:hover {
  text-decoration: none;
}

.link-dimmed {
  color: var(--text-secondary);
  opacity: 0.8;
}

.link-dimmed:hover {
  color: var(--primary-light);
  opacity: 1;
}

.link-fade {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.link-fade:hover {
  opacity: 1;
}

/* ========================================
           頁尾主體組件
        ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xxl) 0 var(--space-lg) 0;
  margin-top: auto;
}

.footer_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer_content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer_bottom {
  border-top: 1px solid var(--gray);
  margin-top: var(--space-sm);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer_bottom p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
  margin: 0 auto;
  line-height: var(--line-height-normal);
}

/* ========================================
           Logo 區域
        ======================================== */
.footer_logo-section {
  flex: 1;
  min-width: 280px;
}

.footer_logo-wrapper {
  margin-bottom: var(--space-lg);
}

.footer_logo {
  height: 40px;
  width: auto;
}

.footer_description {
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-comfortable);
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.footer_status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(105, 108, 255, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid #696cff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  max-width: 300px;
  transition: all 0.3s ease;
}

/* 綠色點點 */
.footer_status-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

/* 綠色點點定位 */
.footer_status-indicator::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0.3;
  animation: footer_statusPulse 2s infinite;
}

@keyframes footer_statusPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

@keyframes footer_status_pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.footer_status span:last-child {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* ========================================
           導航區域
        ======================================== */
.footer_nav-section {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  min-width: 400px;
}

.footer_nav-column {
  flex: 1;
}

.footer_nav-title {
  color: var(--white);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

.footer_nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer_nav-item {
  margin-bottom: var(--space-sm);
}

.footer_nav-link {
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 4px 0;
}

.footer_nav-link:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer_bottom .footer_nav-link {
  display: inline;
  color: var(--text-muted);
}

/* ========================================
           響應式設計
        ======================================== */
@media (max-width: 768px) {
  .footer_content {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .footer_bottom {
    text-align: start;
  }

  .footer_logo-section,
  .footer_nav-section {
    min-width: 100%;
  }

  .footer_nav-section {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .footer_nav-column {
    width: 100%;
  }

  .footer {
    padding: var(--space-xl) 0 var(--space-lg) 0;
  }

  .footer_status {
    padding: 10px 12px;
    margin-top: 12px;
  }

  .footer_status span:last-child {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .footer_container {
    padding: 0 var(--space-md);
  }

  .footer_description {
    max-width: 100%;
  }

  .footer_nav-section {
    gap: var(--space-md);
  }

  .footer_status {
    max-width: 100%;
  }
}

/* ========================================
           輔助樣式
        ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 載入動畫 */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
  .footer_status {
    background: rgba(105, 108, 255, 0.25);
    border-left-color: #696cff;
  }

  .footer_status-indicator {
    background: #10b981;
  }

  .footer_status-indicator::before {
    background: #10b981;
  }

  .footer_status span:last-child {
    color: #e5e7eb;
  }
}
