/* =============================================
   晨曦銀髮 - 徵才網站 CSS
   手機版固定寬度 390px
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 16px;
  background: #f0f0f0;
  color: #333;
  overflow-x: hidden;
}

/* =============================================
   手機框架（所有裝置都顯示手機格式）
   ============================================= */
.phone-wrapper {
  width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7f7f8;
  position: relative;
  overflow: hidden;
  /* 桌機視角時加上陰影讓手機感更明顯 */
  box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

/* =============================================
   Hero Banner
   ============================================= */
.hero-banner {
  width: 100%;
  background: linear-gradient(145deg, #1a6b4a 0%, #2d9966 40%, #38c77a 80%, #4dd88a 100%);
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.hero-title span {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

/* =============================================
   Sections
   ============================================= */
.section {
  padding: 20px 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a6b4a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-title i {
  font-size: 14px;
  color: #2d9966;
}

/* =============================================
   加入優勢卡片
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-blue  { background: #e8f4fd; }
.card-green { background: #e8f9f0; }
.card-orange{ background: #fff3e8; }
.card-purple{ background: #f0ecff; }

.card-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-text strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}

.card-text span {
  font-size: 10.5px;
  color: #666;
  line-height: 1.4;
}

/* =============================================
   職缺說明
   ============================================= */
.job-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #2d9966;
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.job-title-tag {
  background: linear-gradient(135deg, #1a6b4a, #2d9966);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.job-location {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 3px;
}

.job-location i { color: #e05a3a; }

.job-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.job-list li {
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.job-list li i {
  color: #2d9966;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* =============================================
   服務區域
   ============================================= */
.region-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.region-intro {
  font-size: 12.5px;
  color: #1a6b4a;
  font-weight: 600;
  background: #e8f9f0;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
  text-align: center;
}

.region-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.region-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.region-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 2px;
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-tag {
  background: #f4f4f6;
  color: #555;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e8e8ec;
}

.region-tag.region-highlight {
  background: linear-gradient(135deg, #1a6b4a, #2d9966);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

/* =============================================
   應徵條件
   ============================================= */
.require-list {
  background: #fff;
  border-radius: 16px;
  padding: 4px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #444;
}

.req-item:last-child {
  border-bottom: none;
}

.req-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* =============================================
   公司資訊
   ============================================= */
.company-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.company-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.company-logo-icon {
  font-size: 36px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f9f3e3, #ffe5b0);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 3px;
  line-height: 1.4;
}

.company-tag {
  font-size: 11px;
  color: #2d9966;
  background: #e8f9f0;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.company-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-label {
  font-size: 11.5px;
  color: #888;
  min-width: 90px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 1px;
}

.info-label i { color: #2d9966; }

.info-value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
}

/* =============================================
   CTA 按鈕區
   ============================================= */
.cta-section {
  padding-top: 8px;
  padding-bottom: 96px; /* 留給浮動按鈕空間 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-hint {
  font-size: 13px;
  color: #e05a3a;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

/* 主要按鈕 */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  gap: 10px;
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn i { font-size: 18px; flex-shrink: 0; }
.btn span { flex: 1; }
.btn .arrow { font-size: 12px; opacity: 0.7; }

.btn-primary {
  background: linear-gradient(135deg, #06c755, #04a843);
  color: #fff;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(6, 199, 85, 0.55);
}

.btn-secondary {
  background: #fff;
  color: #1a6b4a;
  border: 2px solid #2d9966;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

.btn-secondary:hover {
  background: #f0fcf5;
}

/* =============================================
   浮動底部按鈕
   ============================================= */
.float-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 999;
}

.btn-float {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
  letter-spacing: 1px;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-float:active {
  transform: scale(0.97);
}

.btn-float i {
  font-size: 20px;
}

/* =============================================
   頁腳
   ============================================= */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 28px 20px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo {
  font-size: 20px;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 16px 0;
}

/* 免責聲明 */
.disclaimer-box {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.disclaimer-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd06e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.disclaimer-title i {
  color: #ffc107;
}

.disclaimer-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disclaimer-text p {
  font-size: 11px;
  line-height: 1.75;
  color: #aaa;
}

.disclaimer-text strong {
  color: #ddd;
}

.disclaimer-warn {
  font-size: 11px !important;
  color: #ff8a65 !important;
  font-weight: 600;
  background: rgba(255, 100, 50, 0.1);
  border-radius: 6px;
  padding: 8px 10px !important;
  border-left: 3px solid #ff6b35;
}

/* 版權 */
.footer-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy p {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
}

.footer-tiny {
  font-size: 10px !important;
  color: #666 !important;
  margin-top: 4px;
}

/* =============================================
   響應式：在任何螢幕都保持手機格式
   ============================================= */
@media screen and (max-width: 389px) {
  .phone-wrapper {
    width: 100%;
    box-shadow: none;
  }
  .float-cta {
    width: 100%;
  }
}

@media screen and (min-width: 390px) {
  body {
    padding: 0;
    background: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .phone-wrapper {
    margin-top: 0;
    box-shadow: 0 0 50px rgba(0,0,0,0.18);
  }
}

/* 動畫效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.4s ease both;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }

/* Pulse 動畫 */
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5); }
  50%       { box-shadow: 0 6px 32px rgba(255, 107, 53, 0.75); }
}

.btn-float {
  animation: pulse 2.5s ease-in-out infinite;
}
