/* ============================================================
   六風格網絡科技有限公司 — 統一樣式表
   全站白色主題，統一導航欄、卡片、按鈕、頁腳等組件
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f8f9fa;
  color: #212529;
  font-family: "Microsoft JhengHei", "Microsoft YaHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  min-height: 100vh;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1d4ed8;
}

/* ---------- Navbar (統一導航欄) ---------- */
.navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: #2563eb !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  font-size: 1.5rem;
}

.navbar .nav-link {
  color: #374151 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #2563eb !important;
}

.navbar .dropdown-menu {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  color: #374151;
  padding: 0.6rem 1.25rem;
  font-size: 0.93rem;
  transition: background 0.15s, color 0.15s;
}

.navbar .dropdown-item:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

.navbar-toggler {
  border: 1.5px solid #d1d5db !important;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  box-shadow: none !important;
  transition: border-color 0.2s, background 0.2s;
}

.navbar-toggler:hover {
  border-color: #2563eb !important;
  background: #f0f4ff;
}

.navbar-toggler:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

/* Dark toggler icon for white navbar */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(31, 41, 55, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* ---------- Page Header (頁面標題區) ---------- */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-header h1 {
  font-weight: 800;
  font-size: 2.25rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #6b7280;
  font-size: 1.1rem;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: #ffffff;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card .card-img-top {
  object-fit: cover;
}

.card .card-body {
  padding: 1.5rem;
}

.card .card-title {
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.card .card-text {
  color: #6b7280;
  font-size: 0.93rem;
}

/* ---------- Article Card (文章卡片) ---------- */
.article-card {
  transition: 0.3s;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.7rem 2rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
}

/* ---------- Section Title ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3rem 0 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1f2937;
}

.section-title:first-of-type {
  margin-top: 1.5rem;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title i {
  color: #2563eb;
  font-size: 1.2rem;
}

/* ---------- Content Card (內容區塊) ---------- */
.content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---------- Feature Card (特色卡片) ---------- */
.feature-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.feature-card h4,
.feature-card h5 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #6b7280;
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Service Banner ---------- */
.service-banner {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.service-banner h1 {
  font-weight: 800;
  font-size: 2.25rem;
  color: #1e40af;
}

/* ---------- Article Detail ---------- */
.article-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.article-detail-title {
  font-weight: 800;
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.article-detail-meta {
  color: #9ca3af;
  font-size: 0.9rem;
}

.article-detail-content {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #374151;
}

.article-detail-content h4 {
  color: #2563eb;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
  font-size: 1.2rem;
}

.article-detail-content p {
  margin-bottom: 1rem;
}

.article-detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* ---------- Badge ---------- */
.badge {
  font-weight: 500;
  padding: 0.35em 0.75em;
  border-radius: 6px;
}

/* ---------- Login / Register Card ---------- */
.auth-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.auth-card h3 {
  font-weight: 700;
  color: #1f2937;
}

/* ---------- Contact Section ---------- */
.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- About Section ---------- */
.about-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2.5rem;
}

.about-block h3 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.2rem;
}

/* ---------- Footer ---------- */
footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  color: #6b7280;
  text-align: center;
  margin-top: 3rem;
}

footer a {
  color: #2563eb;
}

/* ---------- Form ---------- */
.form-control {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
}

/* ---------- Pagination ---------- */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Carousel (首頁輪播) ---------- */
.carousel-item img {
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.carousel-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  border-radius: 0 0 14px 14px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 2rem 1.5rem;
}

.carousel-caption h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.7rem;
  }

  .service-banner h1 {
    font-size: 1.5rem;
  }

  .article-detail-title {
    font-size: 1.5rem;
  }

  .carousel-item img {
    height: 260px;
  }

  .content-card {
    padding: 1.5rem;
  }
}
