/* 亞洲青年創業基金會官網自定義樣式 */

:root {
  --primary-color: #2563eb;
  --primary-light: #dbeafe;
  --primary-dark: #1d4ed8;
  --secondary-color: #374151;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
}

/* 全局樣式 */
body {
  font-family: 'Inter', 'Microsoft JhengHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 76px; /* 為固定導航欄預留空間 */
}
.radiusWidth{
   padding: 0px 10px;
}
.logo-top{
   width:250px;
   
}

/* 主色調覆蓋 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* 導航欄樣式 */
.navbar {
  background-color: var(--white) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* 英雄區域樣式 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.jpg') center/cover;
  opacity: 0.2;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* 卡片樣式 */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  border-bottom: none;
  padding: 2rem;
}

/* 服務項目樣式 */
.service-item {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

/* 項目展示樣式 */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.project-icon {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.impact-icon {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.donation-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.project-card:hover .project-overlay {
  opacity: 0.9;
}

/* 統計數據樣式 */
.stats-item {
  text-align: center;
  padding: 2rem;
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stats-label {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* 新聞動態樣式 */
.news-item {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.news-date {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* 聯繫表單樣式 */
.form-control {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* 捐贈按鈕樣式 */
.donate-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
  border: none;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  color: var(--white);
}

/* 返回頂部按鈕 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: var(--white);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .service-item {
    margin-bottom: 1.5rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
}

/* 平滑滾動 */
html {
  scroll-behavior: smooth;
}

/* 動畫效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 載入動畫 */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}