/*
 * 薪立資產管理有限公司網站樣式
 * 純 CSS，不使用任何框架
 */

/* ===== 基礎重置與全域設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* ===== 導覽列 ===== */
.header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: #f97316;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f97316;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.75rem;
  color: #9ca3af;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: #e5e7eb;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #f97316;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero 區塊 ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #f97316;
  color: white;
}

.btn-primary:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background-color: white;
  color: #1e3a8a;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

/* ===== 最新台灣借錢需求區塊 ===== */
.demand-section {
  padding: 5rem 2rem;
  background: #ffffff;
}

.demand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.demand-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demand-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.demand-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.demand-underline {
  width: 60px;
  height: 4px;
  background: #f97316;
  border-radius: 2px;
  margin: 0 auto;
}

.demand-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.demand-tab {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: #1e3a8a;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.demand-tab:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

.demand-tab.is-active {
  background: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.demand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .demand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .demand-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.demand-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.demand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.demand-card-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.demand-meta {
  display: grid;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.demand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demand-ico {
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.demand-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demand-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(30, 58, 138, 0.1);
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ===== 貸款申請流程區塊 ===== */
.loan-application-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.loan-application-container {
  max-width: 900px;
  margin: 0 auto;
}

.loan-application-header {
  text-align: center;
  margin-bottom: 3rem;
}

.loan-application-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.loan-application-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

.step-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background: #1e3a8a;
  color: white;
}

.step-item.completed .step-number {
  background: #f97316;
  color: white;
}

.step-text {
  font-weight: 600;
  color: #6b7280;
  transition: color 0.3s ease;
}

.step-item.active .step-text {
  color: #1e3a8a;
}

.step-item.completed .step-text {
  color: #f97316;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 1rem;
}

.step-item.completed ~ .step-item .step-connector {
  background: #f97316;
}

.loan-form-container {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.password-requirements {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.mascot-tip {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.mascot-tip .mascot-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.mascot-tip p {
  color: #92400e;
  font-size: 0.875rem;
  margin: 0;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.captcha-display {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  color: #1f2937;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

.captcha-refresh {
  background: #6b7280;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.captcha-refresh:hover {
  background: #4b5563;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-input {
  width: auto;
  margin: 0;
}

.checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
  cursor: pointer;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-outline {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  border: 1px solid #a7f3d0;
}

/* ===== 服務項目區塊 ===== */
.services {
  padding: 5rem 2rem;
  background-color: #f9fafb;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.125rem;
  color: #6b7280;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: #f97316;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  width: 100%;
}

/* ===== 關於我們區塊 ===== */
.about {
  padding: 5rem 2rem;
  background-color: white;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #6b7280;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: #f97316;
  flex-shrink: 0;
}

/* ===== 聯絡資訊區塊 ===== */
.contact {
  padding: 5rem 2rem;
  background-color: #f9fafb;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #f97316;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: #6b7280;
  font-size: 1.125rem;
}

/* ===== 表單樣式 ===== */
.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #f97316;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== 服務詳情頁 ===== */
.service-detail {
  padding: 5rem 2rem;
  background-color: white;
}

.service-detail-container {
  max-width: 900px;
  margin: 0 auto;
}

.service-detail h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-detail-content {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.service-detail-content h2 {
  font-size: 1.75rem;
  color: #f97316;
  margin: 2rem 0 1rem;
}

.service-detail-content h2:first-child {
  margin-top: 0;
}

.service-detail-content ul {
  list-style: disc;
  margin-left: 2rem;
  color: #6b7280;
}

.service-detail-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.service-detail-content p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-box {
  background: white;
  padding: 1.5rem;
  border-left: 4px solid #f97316;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.info-box h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ===== 頁尾 ===== */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #f97316;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  margin: 0 0.5rem;
  font-size: 0.875rem;
}

.footer-bottom a:hover {
  color: #f97316;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 1rem;
    border-bottom: 1px solid #374151;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .demand-title {
    font-size: 2rem;
  }

  .loan-application-title {
    font-size: 2rem;
  }

  .step-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    margin: 0.5rem 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-buttons {
    flex-direction: column;
  }

  .loan-form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .services,
  .about,
  .contact,
  .service-detail,
  .demand-section,
  .loan-application-section {
    padding: 3rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .demand-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .demand-tab {
    flex-shrink: 0;
  }

  .captcha-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== 實用類別 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}