* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: #f8f5ee;
  background-color: #120c0a;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  padding: 72px 0;
  background-color: #ffffff;
}

#terms.section.section-alt {
  background:
    linear-gradient(to right, rgba(18, 12, 10, 0.94), rgba(18, 12, 10, 0.85)),
    url("https://images.unsplash.com/photo-1607083206173-2a1f7e20c42f?auto=format&fit=crop&w=1600&q=80")
      center center / cover no-repeat;
  color: #f8f5ee;
}

#plan.section.section-alt {
  background-color: #f5f5f5;
  background-image:
    linear-gradient(135deg, rgba(249, 249, 249, 0.5) 0%, rgba(236, 233, 227, 0.5) 40%, rgba(222, 214, 204, 0.5) 100%),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#plan.section.section-alt .section-header h2 {
  color: #1a1a1a;
}

#plan.section.section-alt .section-header p {
  color: #555;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.section-header p {
  color: #666;
  font-size: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mt-lg {
  margin-top: 40px;
}

.card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.list {
  list-style: none;
  margin-top: 4px;
}

.list li {
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f97316;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f7c66b, #e1a548);
  color: #4b2c16;
  border-color: #f3b962;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.02);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.6);
}

.btn-outline {
  background-color: transparent;
  border-color: #f3b962;
  color: #f3b962;
}

.btn-outline:hover {
  background-color: rgba(243, 185, 98, 0.08);
}

.btn-full {
  width: 100%;
  margin-top: 12px;
}

.btn-block {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(18, 12, 10, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(133, 94, 66, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7c66b, #e1a548);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 10px 18px rgba(248, 113, 22, 0.35);
}

.logo-name {
  font-weight: 700;
  font-size: 17px;
}

.logo-sub {
  font-size: 12px;
  color: #c4b19a;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.main-nav a {
  color: #f5e7cf;
}

.main-nav a:hover {
  color: #f7c66b;
}

.nav-cta {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #f3b962;
  color: #f3b962;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: rgba(243, 185, 98, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(243, 185, 98, 0.8);
  background-color: transparent;
  color: #f3b962;
  font-size: 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(243, 185, 98, 0.4);
}

/* Hero */

.hero-section {
  position: relative;
  padding: 120px 0 90px;
  color: #fdf3d7;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)),
    url("../img/hero-bg.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -120px;
  height: 260px;
  background-color: #120c0a;
  border-radius: 50% 50% 0 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 28px;
}

.hero-content h1 {
  font-size: 36px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 17px;
  color: #fef7e7;
  margin-bottom: 18px;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 18px;
}

.hero-bullets li {
  font-size: 15px;
  color: #f8f5ee;
  margin: 4px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-card {
  max-width: 420px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.92) 100%);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.hero-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.hero-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #1a1a1a;
  font-weight: 700;
  background: linear-gradient(135deg, #f7c66b, #e1a548);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.6;
}

.hero-card-list {
  list-style: none;
  font-size: 13px;
  color: #666;
}

.hero-card-list li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  line-height: 1.5;
}

.hero-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: 700;
  font-size: 15px;
}

/* Feature cards */

.feature-card {
  border-top: 3px solid #f97316;
}

.feature-tag {
  border-left: 3px solid #f97316;
}

#features.section {
  background:
    linear-gradient(to bottom, rgba(42, 24, 17, 0.92), rgba(26, 16, 12, 0.95)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80")
      center center / cover no-repeat;
}

#features.section .section-header h2,
#features.section .section-header p {
  color: #f8f5ee;
}

/* Terms section */

#terms .note {
  margin-top: 10px;
  font-size: 13px;
  color: #d4af37;
}

/* Contact section */

.contact-section {
  background:
    linear-gradient(to bottom, rgba(18, 12, 10, 0.9), rgba(18, 12, 10, 0.95)),
    url("https://images.unsplash.com/photo-1488998527040-85054a85150e?auto=format&fit=crop&w=1600&q=80")
      center center / cover no-repeat;
  color: #e5e7eb;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 12px;
}

.contact-info .list li {
  color: #e5e7eb;
}

.contact-form-card {
  background-color: #020617;
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
  color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid #4b5563;
  padding: 8px 10px;
  font-size: 14px;
  background-color: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.form-consent {
  font-size: 12px;
  color: #9ca3af;
}

.form-consent input {
  margin-right: 4px;
}

.form-status {
  margin-top: 6px;
  font-size: 13px;
  min-height: 18px;
}

.form-status--success {
  color: #4ade80;
}

.form-status--error {
  color: #f97373;
}

/* Footer */

.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 20px 0 26px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.footer-info p {
  font-size: 12px;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #f97316;
}

/* 响应式 */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  body.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background-color: rgba(18, 12, 10, 0.98);
    padding: 14px 18px 18px;
    border-bottom: 1px solid rgba(133, 94, 66, 0.7);
    gap: 12px;
  }

  body.nav-open .main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .section,
  .section-alt {
    padding: 56px 0;
  }

  .hero-section {
    padding: 90px 0 70px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .container {
    padding: 0 14px;
  }

  .hero-card {
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .contact-inner {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    align-items: center;
    gap: 6px;
  }

  .main-nav {
    font-size: 14px;
  }

  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-bullets li {
    font-size: 12px;
  }

  .hero-card {
    padding: 18px 16px 20px;
  }

  .card {
    padding: 20px 18px 22px;
  }

  .contact-form-card {
    padding: 18px 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 專業服務項目區塊 */

.services-section {
  background: linear-gradient(135deg, #d4a574 0%, #c9985f 100%);
  padding: 60px 0;
}

.services-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.service-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.service-item:hover {
  transform: translateY(-12px);
}

.service-image {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.4s ease;
}

.service-item:hover .service-image {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(0.95);
}

.service-item:hover .service-image img {
  transform: scale(1.12);
  filter: brightness(1.1);
}

.service-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-item:hover .service-image::after {
  opacity: 1;
}

.service-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  position: relative;
  display: inline-block;
}

.service-item:hover .service-label {
  transform: scale(1.08);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.services-header {
  text-align: center;
  margin-top: 20px;
}

.services-header h2 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 8px;
}

.services-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

@media (max-width: 1024px) {
  .services-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .service-image {
    height: 150px;
  }

  .services-header h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .services-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .service-image {
    height: 140px;
  }

  .services-header h2 {
    font-size: 18px;
  }
}

/* 悬浮按钮组 */

.floating-buttons-group {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

/* 悬浮 LINE 按钮 */

.floating-line-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00b900, #009900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 185, 0, 0.4);
  transition: all 0.3s ease;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.floating-line-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 185, 0, 0.6);
}

.floating-line-btn svg {
  width: 32px;
  height: 32px;
}

/* 下载 App 按钮 */

.floating-download-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#global-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.global-loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: global-loading-spin 0.9s linear infinite;
}

@keyframes global-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 手機版下載 APP 彈框 */

.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.app-modal.show {
  display: flex;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}

.app-modal-dialog {
  position: relative;
  max-width: 320px;
  margin: 0 20px;
  border-radius: 20px;
  background: #ffffff;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  text-align: center;
}

.app-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.app-modal-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 8px;
}

.app-modal-tip {
  font-size: 13px;
  color: #2563eb;
  line-height: 1.5;
  margin-bottom: 16px;
}

.app-modal-actions {
  display: flex;
  gap: 10px;
}

.app-modal-btn {
  flex: 1;
  border-radius: 999px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.app-modal-btn-secondary {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #4b5563;
}

.app-modal-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-color: #2563eb;
}

@media (min-width: 769px) {
  /* 桌機預設不顯示彈框 */
  .app-modal {
    display: none !important;
  }
}
