/* ============================================
   蔓蔓班 畢業旅行 — Design System v2
   風格：Warm Nature / Camping Adventure
   改進版本：增強UI介面設計
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&family=Playfair+Display:wght@700;900&family=Caveat:wght@400;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* 大地色系 */
  --forest:       #2D5016;
  --forest-deep:  #1A3A0A;
  --sage:         #7A9E6B;
  --sage-light:   #B8D4A8;
  --moss:         #4A7C3F;
  --earth:        #8B6F47;
  --earth-warm:   #A0845C;
  --sand:         #E8DCC8;
  --sand-light:   #F5F0E6;
  --cream:        #FFF9EE;
  --sunset:       #E8956A;
  --sunset-warm:  #F4A87C;
  --campfire:     #D4763A;
  --sky:          #6BB5D4;
  --night:        #1C2B1A;
  --bark:         #5E4A35;

  /* UI 色彩 */
  --text-primary:    #2C3E2A;
  --text-secondary:  #5A6E58;
  --text-muted:      #8A998A;
  --border:          #D4CEBC;
  --border-light:    #E8E2D4;
  --surface:         #FFFFFF;
  --surface-warm:    #FFFCF5;
  --shadow-color:    rgba(45, 80, 22, 0.08);
  --shadow-strong:   rgba(45, 80, 22, 0.15);

  /* 增強間距 */
  --space-xs: 0.25rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  /* 圓角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* 動畫 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.8; /* 增強行距 */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1.05rem; /* 稍微增大基礎字體 */
}

/* --- Decorative Background Pattern --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(122, 158, 107, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 149, 106, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(107, 181, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem; /* 增加padding */
  transition: all 0.4s var(--ease-out);
  background: rgba(255, 249, 238, 0.95); /* 增強背景透明度 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px var(--shadow-color); /* 增強陰影 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav.scrolled {
  background: rgba(255, 249, 238, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 6px 32px var(--shadow-strong);
}

.nav-inner {
  max-width: 1200px; /* 稍微增大 */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem; /* 增大字體 */
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem; /* 稍微增大 */
  font-weight: 600; /* 增強字重 */
  padding: 0.6rem 1.2rem; /* 增加padding */
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 158, 107, 0.1), transparent);
  transition: left 0.5s;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  color: var(--forest);
  background: rgba(45, 80, 22, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.15);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px; /* 稍微增大 */
  height: 3px; /* 稍微增厚 */
  background: var(--forest);
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem; /* 增加padding */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg,
      var(--forest-deep) 0%,
      var(--forest) 25%,
      var(--moss) 50%,
      var(--sage) 75%,
      var(--sage-light) 100%
    );
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(232, 149, 106, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(107, 181, 212, 0.2) 0%, transparent 40%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 140px; /* 稍微增高 */
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* Floating decorative elements */
.hero-decor {
  position: absolute;
  z-index: 1;
  opacity: 0.15;
  font-size: 3.5rem; /* 稍微增大 */
  animation: float 6s ease-in-out infinite;
}

.hero-decor:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-decor:nth-child(2) { top: 60%; left: 5%; animation-delay: 1s; font-size: 2.5rem; }
.hero-decor:nth-child(3) { top: 20%; right: 8%; animation-delay: 2s; font-size: 3rem; }
.hero-decor:nth-child(4) { top: 65%; right: 12%; animation-delay: 0.5s; }
.hero-decor:nth-child(5) { top: 40%; left: 15%; animation-delay: 3s; font-size: 2.5rem; }
.hero-decor:nth-child(6) { bottom: 20%; right: 20%; animation-delay: 1.5s; font-size: 3rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px; /* 稍微增大 */
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.9rem; /* 稍微增大 */
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.6rem 1.8rem; /* 增加padding */
  border-radius: var(--radius-full);
  margin-bottom: 2rem; /* 增加margin */
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem); /* 增大字體 */
  font-weight: 900;
  color: #fff;
  line-height: 1.1; /* 稍微調整行距 */
  margin-bottom: 1.5rem; /* 增加margin */
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.hero-title .accent {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--sunset-warm);
  font-size: 1.2em;
  font-weight: 900;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9); /* 增強對比 */
  font-size: clamp(1.1rem, 2.8vw, 1.3rem); /* 增大字體 */
  font-weight: 400; /* 稍微減輕 */
  margin-bottom: 2.5rem; /* 增加margin */
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
  line-height: 1.6; /* 增強行距 */
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2.5rem; /* 增加gap */
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* 稍微增加 */
  color: rgba(255, 255, 255, 0.95); /* 增強對比 */
  font-size: 1rem; /* 稍微增大 */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-meta-item .icon {
  font-size: 1.4rem; /* 稍微增大 */
}

.hero-cta {
  margin-top: 3rem; /* 增加margin */
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem; /* 稍微增加 */
  padding: 1rem 2.5rem; /* 增加padding */
  border-radius: var(--radius-full);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.05rem; /* 稍微增大 */
  font-weight: 700; /* 增強字重 */
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring); /* 改用spring動畫 */
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset) 0%, var(--campfire) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232, 149, 106, 0.4); /* 增強陰影 */
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--campfire) 0%, var(--sunset) 100%);
  transform: translateY(-3px) scale(1.02); /* 增強效果 */
  box-shadow: 0 8px 32px rgba(232, 149, 106, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.btn-green {
  background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(45, 80, 22, 0.3);
}

.btn-green:hover {
  background: linear-gradient(135deg, var(--moss) 0%, var(--forest) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(45, 80, 22, 0.4);
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-lg);
}

.section-inner {
  max-width: 1100px; /* 稍微增大 */
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-icon {
  font-size: 3rem; /* 增大 */
  margin-bottom: 0.8rem; /* 增加margin */
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem); /* 增大字體 */
  font-weight: 900; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 0.8rem; /* 增加margin */
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem; /* 稍微增大 */
  font-weight: 500; /* 稍微增強 */
}

/* --- Info Section --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 稍微增大最小寬度 */
  gap: 2rem; /* 增加gap */
}

.info-card {
  background: var(--surface);
  border: 2px solid var(--border-light); /* 增強邊框 */
  border-radius: var(--radius-xl); /* 增大圓角 */
  padding: 2.5rem; /* 增加padding */
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px; /* 增高 */
  background: linear-gradient(90deg, var(--sage), var(--sunset));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.info-card:hover {
  transform: translateY(-6px) scale(1.02); /* 增強效果 */
  box-shadow: 0 16px 48px var(--shadow-strong);
  border-color: var(--sage);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card-icon {
  font-size: 2.5rem; /* 增大 */
  margin-bottom: 1.2rem; /* 增加margin */
}

.info-card h3 {
  font-size: 1.25rem; /* 增大 */
  font-weight: 800; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 1rem; /* 增加margin */
}

.info-card p, .info-card li {
  color: var(--text-secondary);
  font-size: 1rem; /* 稍微增大 */
  line-height: 1.9; /* 增強行距 */
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  padding: 0.3rem 0; /* 稍微增加 */
  padding-left: 1.5rem; /* 稍微增加 */
  position: relative;
}

.info-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 1.1rem; /* 稍微增大 */
}

/* --- Schedule Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem; /* 稍微增加 */
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.8rem; /* 稍微調整 */
  top: 0;
  bottom: 0;
  width: 3px; /* 增粗 */
  background: linear-gradient(to bottom, var(--sage), var(--sunset));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem; /* 增加margin */
  padding-left: 1.8rem; /* 稍微增加 */
  animation: fadeInLeft 0.5s var(--ease-out) both;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; /* 調整位置 */
  top: 0.6rem; /* 稍微調整 */
  width: 14px; /* 稍微增大 */
  height: 14px;
  background: var(--sage);
  border-radius: 50%;
  border: 4px solid var(--cream); /* 增強邊框 */
  box-shadow: 0 0 0 3px var(--sage);
}

.timeline-time {
  font-size: 0.9rem; /* 稍微增大 */
  font-weight: 700; /* 增強字重 */
  color: var(--sunset);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem; /* 稍微增加 */
}

.timeline-title {
  font-size: 1.15rem; /* 稍微增大 */
  font-weight: 800; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 0.3rem; /* 稍微增加 */
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem; /* 稍微增大 */
  line-height: 1.7; /* 增強行距 */
}

/* --- Equipment Section --- */
.equipment-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand-light) 100%);
}

.calc-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem; /* 稍微增加 */
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.calc-item-price {
  font-size: 1.4rem; /* 稍微增大 */
  font-weight: 900; /* 增強字重 */
  color: var(--campfire);
}

.calc-item-price small {
  font-size: 0.75rem; /* 稍微增大 */
  font-weight: 400;
  color: var(--text-muted);
}

/* Quantity controls */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* 稍微增加 */
}

.qty-btn {
  width: 32px; /* 稍微增大 */
  height: 32px;
  border: 2px solid var(--border); /* 增強邊框 */
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.1rem; /* 稍微增大 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.qty-btn:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  transform: scale(1.1);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  font-size: 1.1rem; /* 稍微增大 */
  font-weight: 800; /* 增強字重 */
  width: 32px; /* 稍微增大 */
  text-align: center;
  color: var(--text-primary);
}

/* --- Summary Panel --- */
.summary-panel {
  background: var(--surface);
  border: 3px solid var(--border-light); /* 增強邊框 */
  border-radius: var(--radius-xl);
  padding: 2.5rem; /* 增加padding */
  box-shadow: 0 12px 48px var(--shadow-strong); /* 增強陰影 */
}

.summary-title {
  font-size: 1.4rem; /* 稍微增大 */
  font-weight: 900; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 1.8rem; /* 增加margin */
  display: flex;
  align-items: center;
  gap: 0.6rem; /* 稍微增加 */
}

.summary-items {
  margin-bottom: 2rem; /* 增加margin */
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0; /* 增加padding */
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem; /* 稍微增大 */
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  color: var(--text-secondary);
}

.summary-row .amount {
  font-weight: 700; /* 增強字重 */
  color: var(--text-primary);
}

.summary-total-bar {
  background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; /* 增加padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem; /* 稍微增大 */
  font-weight: 600; /* 增強字重 */
}

.summary-total-amount {
  color: #fff;
  font-size: 2rem; /* 增大 */
  font-weight: 900;
}

.summary-total-amount small {
  font-size: 0.75rem; /* 稍微增大 */
  font-weight: 400;
}

/* --- Split Table --- */
.split-section {
  background: var(--surface-warm);
}

.split-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-light); /* 增強邊框 */
  box-shadow: 0 6px 24px var(--shadow-strong); /* 增強陰影 */
}

.split-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem; /* 稍微增大 */
}

.split-table thead th {
  background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 100%);
  color: #fff;
  font-weight: 700; /* 增強字重 */
  padding: 1.2rem 1.2rem; /* 增加padding */
  text-align: center;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.split-table thead th:first-child {
  text-align: left;
  padding-left: 2rem; /* 增加padding */
}

.split-table tbody td {
  padding: 1rem 1.2rem; /* 增加padding */
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.split-table tbody td:first-child {
  text-align: left;
  padding-left: 2rem;
  font-weight: 700; /* 增強字重 */
  color: var(--forest);
}

.split-table tbody tr:hover {
  background: rgba(122, 158, 107, 0.08); /* 增強懸停效果 */
}

.split-table tbody tr:last-child td {
  border-bottom: none;
}

.split-table tfoot td {
  padding: 1.5rem; /* 增加padding */
  text-align: center;
  font-weight: 900; /* 增強字重 */
  font-size: 1.1rem; /* 稍微增大 */
  background: var(--sand-light);
  color: var(--campfire);
  border-top: 3px solid var(--forest); /* 增強邊框 */
}

.split-table tfoot td:first-child {
  text-align: left;
  padding-left: 2rem;
  color: var(--forest);
}

.cell-check {
  color: var(--sage);
  font-weight: 800; /* 增強字重 */
}

.cell-amount {
  font-weight: 700; /* 增強字重 */
  color: var(--text-primary);
}

/* Editable table notice */
.table-notice {
  text-align: center;
  font-size: 0.9rem; /* 稍微增大 */
  color: var(--text-muted);
  margin-top: 1.5rem; /* 增加margin */
  font-style: italic;
}

/* --- Registration / Form Section --- */
.register-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand-light) 50%, var(--cream) 100%);
}

.register-box {
  background: var(--surface);
  border: 3px solid var(--border-light); /* 增強邊框 */
  border-radius: var(--radius-xl);
  padding: 4rem; /* 增加padding */
  text-align: center;
  max-width: 750px; /* 稍微增大 */
  margin: 0 auto;
  box-shadow: 0 16px 64px var(--shadow-strong); /* 增強陰影 */
  position: relative;
  overflow: hidden;
}

.register-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px; /* 增高 */
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--sunset));
}

.register-box h3 {
  font-size: 1.8rem; /* 增大 */
  font-weight: 900; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 1rem; /* 增加margin */
}

.register-box p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem; /* 增加margin */
  font-size: 1.05rem; /* 稍微增大 */
  line-height: 1.8; /* 增強行距 */
}

.register-box .btn {
  font-size: 1.2rem; /* 稍微增大 */
  padding: 1.2rem 3.5rem; /* 增加padding */
}

.google-form-embed {
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  margin-top: 2rem; /* 增加margin */
}

/* --- Notes Section --- */
.notes-section {
  background: var(--surface-warm);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 稍微增大最小寬度 */
  gap: 1.5rem; /* 稍微增加 */
}

.note-card {
  background: var(--surface);
  border: 2px solid var(--border-light); /* 增強邊框 */
  border-radius: var(--radius-xl); /* 增大圓角 */
  padding: 2rem; /* 增加padding */
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.note-card:hover {
  transform: translateY(-5px) scale(1.02); /* 增強效果 */
  box-shadow: 0 12px 40px var(--shadow-strong);
  border-color: var(--sage);
}

.note-card-icon {
  font-size: 2rem; /* 稍微增大 */
  margin-bottom: 1rem; /* 增加margin */
}

.note-card h4 {
  font-size: 1.1rem; /* 稍微增大 */
  font-weight: 800; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 0.8rem; /* 增加margin */
}

.note-card p {
  font-size: 1rem; /* 稍微增大 */
  color: var(--text-secondary);
  line-height: 1.8; /* 增強行距 */
}

/* --- Footer --- */
.footer {
  background: linear-gradient(135deg, var(--night) 0%, var(--forest-deep) 100%);
  color: rgba(255, 255, 255, 0.8); /* 增強對比 */
  text-align: center;
  padding: 3rem 2rem; /* 增加padding */
  position: relative;
  z-index: 1;
}

.footer-emoji {
  font-size: 2.5rem; /* 增大 */
  margin-bottom: 1rem; /* 增加margin */
}

.footer p {
  font-size: 1rem; /* 稍微增大 */
  line-height: 1.8; /* 增強行距 */
}

.footer .highlight {
  color: var(--sunset-warm);
  font-weight: 700; /* 增強字重 */
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-spring); /* 改用spring動畫 */
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 249, 238, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem; /* 增加padding */
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px var(--shadow-color);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 1.5rem; /* 增加padding */
    text-align: center;
    font-size: 1rem; /* 稍微增大 */
  }

  .nav-toggle {
    display: block;
  }

  .hero-meta {
    gap: 1.5rem; /* 稍微增加 */
  }

  .hero-meta-item {
    font-size: 1.05rem; /* 稍微增大 */
    padding: 1rem 1.5rem; /* 增加padding */
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 稍微增加 */
  }

  .calc-items {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    padding: 2rem; /* 增加padding */
  }

  .register-box {
    padding: 3rem 2rem; /* 調整padding */
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem; /* 稍微增加 */
  }

  .split-table {
    font-size: 0.8rem; /* 稍微調整 */
  }

  .split-table thead th,
  .split-table tbody td {
    padding: 0.8rem 0.8rem; /* 調整padding */
  }

  /* 手機版字體優化 */
  body {
    font-size: 17px; /* 增大基礎字體 */
  }

  .section-title {
    font-size: 2.2rem !important; /* 增大章節標題 */
  }

  .section-subtitle {
    font-size: 1.2rem !important; /* 增大副標題 */
  }

  p, li, .timeline-desc, .note-card p {
    font-size: 1.1rem !important; /* 增大段落文字 */
    line-height: 1.7 !important;
  }

  .equipment-table th, .equipment-table td {
    padding: 1rem 0.8rem; /* 增加padding */
    font-size: 1.1rem !important;
  }

  .split-table th, .split-table td {
    font-size: 1.1rem !important;
  }

  .info-card h3, .note-card h4, .timeline-title {
    font-size: 1.4rem !important; /* 增大標題 */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem; /* 調整手機版字體 */
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 增加gap */
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 1.2rem 2rem; /* 調整padding */
  }

  .register-box {
    padding: 2.5rem 1.5rem; /* 調整padding */
  }

  .footer {
    padding: 2.5rem 1.5rem; /* 調整padding */
  }
}

/* ============================================
   NEW: 家庭卡片
   ============================================ */
.family-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* 稍微增大 */
  gap: 1.25rem; /* 稍微增加 */
}

.family-card {
  background: var(--surface);
  border: 3px solid var(--border-light); /* 增強邊框 */
  border-radius: var(--radius-lg);
  padding: 1.5rem; /* 增加padding */
  text-align: center;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.family-card:hover {
  transform: translateY(-4px) scale(1.02); /* 增強效果 */
  box-shadow: 0 12px 32px var(--shadow-strong);
}

.family-card.has-tent {
  border-left: 5px solid var(--sage); /* 增強邊框 */
}

.family-card.need-tent {
  border-left: 5px solid var(--sunset);
}

.family-card-name {
  font-size: 1.15rem; /* 稍微增大 */
  font-weight: 900; /* 增強字重 */
  color: var(--forest);
  margin-bottom: 0.6rem; /* 稍微增加 */
}

.family-card-members {
  font-size: 0.9rem; /* 稍微增大 */
  color: var(--text-secondary);
  margin-bottom: 0.6rem; /* 稍微增加 */
}

.family-card-members span {
  display: block;
  font-size: 0.8rem; /* 稍微增大 */
  color: var(--text-muted);
  margin-top: 0.2rem; /* 稍微增加 */
}

.family-card-tent {
  font-size: 0.8rem; /* 稍微增大 */
  font-weight: 700; /* 增強字重 */
  padding: 0.25rem 0.6rem; /* 稍微增加 */
  border-radius: var(--radius-full);
  display: inline-block;
}

.family-card.has-tent .family-card-tent {
  background: rgba(122, 158, 107, 0.15); /* 增強背景 */
  color: var(--forest);
}

.family-card.need-tent .family-card-tent {
  background: rgba(232, 149, 106, 0.15);
  color: var(--campfire);
}

/* ============================================
   NEW: 互動式分攤表
   ============================================ */
.split-instructions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* 增加gap */
  margin-bottom: 2rem; /* 增加margin */
  justify-content: center;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* 稍微增加 */
  font-size: 0.9rem; /* 稍微增大 */
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.8rem 1.5rem; /* 增加padding */
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light); /* 增強邊框 */
  box-shadow: 0 2px 12px var(--shadow-color);
}

.instruction-icon {
  font-size: 1.2rem; /* 稍微增大 */
}

/* Table header family info */
.th-family-name {
  font-size: 0.9rem; /* 稍微增大 */
  font-weight: 800; /* 增強字重 */
  margin-bottom: 0.2rem; /* 稍微增加 */
}

.th-family-meta {
  font-size: 0.7rem; /* 稍微增大 */
  font-weight: 400;
  opacity: 0.8;
}

.th-tent-badge {
  display: inline-block;
  font-size: 0.6rem; /* 稍微增大 */
  padding: 0.15rem 0.5rem; /* 稍微增加 */
  border-radius: 4px;
  margin-top: 0.3rem; /* 稍微增加 */
  background: rgba(255,255,255,0.2);
}

.th-tent-badge.need {
  background: rgba(232, 149, 106, 0.3);
}

/* Split table columns */
.col-item {
  min-width: 120px; /* 稍微增大 */
  text-align: left !important;
  white-space: nowrap;
}

.item-icon {
  margin-right: 0.4rem; /* 稍微增加 */
}

.col-price {
  min-width: 180px; /* 稍微增大 */
  white-space: nowrap;
}

.col-note {
  min-width: 80px; /* 稍微增大 */
  font-size: 0.8rem; /* 稍微增大 */
  color: var(--text-muted);
}

.note-text {
  font-size: 0.8rem; /* 稍微增大 */
}

.col-family {
  min-width: 100px; /* 稍微增大 */
}

/* Price unit label */
.price-unit {
  font-size: 0.75rem; /* 稍微增大 */
  color: var(--text-muted);
  margin-left: 0.25rem; /* 稍微增加 */
}

/* Qty total badge */
.qty-total-badge {
  font-size: 0.8rem; /* 稍微增大 */
  color: var(--text-muted);
}

.qty-total-badge.has-qty {
  color: var(--forest);
  font-weight: 800; /* 增強字重 */
  background: rgba(122, 158, 107, 0.15); /* 增強背景 */
  padding: 0.2rem 0.6rem; /* 稍微增加 */
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Shared row styling */
.row-shared td {
  background: rgba(245, 240, 230, 0.6); /* 增強背景 */
}

/* Custom row styling */
.row-custom td {
  background: rgba(240, 245, 250, 0.5);
}

.custom-name-input {
  width: 100px; /* 稍微增大 */
  border: 2px dashed var(--border); /* 增強邊框 */
  border-radius: 8px; /* 增大圓角 */
  padding: 0.3rem 0.5rem; /* 稍微增加 */
  font-size: 0.85rem; /* 稍微增大 */
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700; /* 增強字重 */
  color: var(--text-primary);
  background: transparent;
  transition: border-color 0.2s;
}

.custom-name-input:focus {
  outline: none;
  border-color: var(--forest);
  border-style: solid;
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.custom-name-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

/* Shared price inputs - qty × price layout */
.shared-inputs-row {
  display: flex;
  align-items: center;
  gap: 0.3rem; /* 稍微增加 */
  flex-wrap: nowrap;
}

.shared-times {
  font-weight: 800; /* 增強字重 */
  color: var(--text-muted);
  font-size: 0.9rem; /* 稍微增大 */
}

.shared-input-label {
  font-size: 0.75rem; /* 稍微增大 */
  color: var(--text-muted);
  white-space: nowrap;
}

.shared-qty-input {
  width: 45px; /* 稍微增大 */
}

.shared-price-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem; /* 稍微增加 */
}

.input-prefix {
  font-weight: 700; /* 增強字重 */
  color: var(--text-secondary);
  font-size: 0.9rem; /* 稍微增大 */
}

.shared-price-input {
  width: 80px; /* 稍微增大 */
  border: 2px solid var(--border); /* 增強邊框 */
  border-radius: 8px; /* 增大圓角 */
  padding: 0.4rem 0.5rem; /* 稍微增加 */
  font-size: 0.9rem; /* 稍微增大 */
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700; /* 增強字重 */
  color: var(--text-primary);
  background: var(--surface);
  text-align: right;
  transition: border-color 0.2s;
}

.shared-price-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.1); /* 增強陰影 */
}

.shared-price-input::-webkit-inner-spin-button,
.shared-price-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Shared amount cells */
.cell-shared-amount {
  font-weight: 700; /* 增強字重 */
  color: var(--text-secondary);
  font-size: 0.9rem; /* 稍微增大 */
}

/* Qty controls in split table */
.split-qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem; /* 稍微增加 */
}

.split-qty-control {
  display: flex;
  align-items: center;
  gap: 0.3rem; /* 稍微增加 */
}

.split-qty-btn {
  width: 28px; /* 稍微增大 */
  height: 28px;
  border: 2px solid var(--border); /* 增強邊框 */
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.95rem; /* 稍微增大 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-spring);
  line-height: 1;
  padding: 0;
}

.split-qty-btn:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  transform: scale(1.1);
}

.split-qty-btn.minus:hover {
  background: var(--sunset);
  border-color: var(--sunset);
}

.split-qty-value {
  font-size: 1rem; /* 稍微增大 */
  font-weight: 800; /* 增強字重 */
  width: 24px; /* 稍微增大 */
  text-align: center;
  color: var(--text-primary);
}

.split-qty-amount {
  font-size: 0.75rem; /* 稍微增大 */
  color: var(--text-muted);
  font-weight: 600; /* 增強字重 */
}

.split-qty-amount.has-amount {
  color: var(--campfire);
  font-weight: 800;
  font-size: 0.8rem; /* 稍微增大 */
}

/* Total row */
.row-total td {
  background: var(--sand-light) !important;
  border-top: 3px solid var(--forest); /* 增強邊框 */
}

.cell-total {
  color: var(--campfire) !important;
  font-size: 1.2rem !important; /* 稍微增大 */
}

/* Grand total bar */
.grand-total-bar {
  background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem; /* 增加padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem; /* 增加margin */
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem; /* 稍微增大 */
  font-weight: 600; /* 增強字重 */
}

.grand-total-amount {
  font-size: 2.2rem; /* 增大 */
  font-weight: 900;
}

/* Google Sheets source bar */
.sheet-source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(122, 158, 107, 0.1); /* 增強背景 */
  border: 2px solid rgba(122, 158, 107, 0.25); /* 增強邊框 */
  border-radius: var(--radius-lg);
  padding: 0.8rem 1.2rem; /* 稍微增加 */
  margin-top: 1.5rem; /* 稍微增加 */
  font-size: 0.85rem; /* 稍微增大 */
  color: var(--text-secondary);
  box-shadow: 0 2px 12px var(--shadow-color);
}

.sheet-source-info {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* 稍微增加 */
}

.sheet-time {
  color: var(--text-muted);
  font-size: 0.75rem; /* 稍微增大 */
}

.btn-reload {
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem; /* 稍微增加 */
  border-radius: var(--radius-lg);
  font-size: 0.8rem; /* 稍微增大 */
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.btn-reload:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-reload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Responsive additions for new components
   ============================================ */
@media (max-width: 768px) {
  .family-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 稍微增大 */
    gap: 1rem; /* 稍微增加 */
  }

  .family-card {
    padding: 1.2rem; /* 稍微增加 */
  }

  .split-instructions {
    flex-direction: column;
    gap: 1rem; /* 稍微增加 */
  }

  .instruction-item {
    justify-content: center;
    padding: 0.6rem 1.2rem; /* 稍微增加 */
  }

  .split-qty-btn {
    width: 24px; /* 稍微增大 */
    height: 24px;
    font-size: 0.8rem; /* 稍微調整 */
  }

  .shared-price-input {
    width: 65px; /* 稍微增大 */
    font-size: 0.8rem; /* 稍微調整 */
  }

  .grand-total-bar {
    padding: 1.2rem 1.5rem; /* 稍微增加 */
  }

  .grand-total-amount {
    font-size: 1.6rem; /* 稍微增大 */
  }

  /* 手機版全面提昇字體大小與間距 */
  body {
    font-size: 18px; /* 進一步增大基礎字體 */
  }

  .section-title {
    font-size: 2.5rem !important; /* 進一步增大章節標題 */
  }

  .section-subtitle {
    font-size: 1.3rem !important; /* 進一步增大副標題 */
  }

  p, li, .timeline-desc, .note-card p {
    font-size: 1.15rem !important; /* 進一步增大段落文字 */
    line-height: 1.75 !important;
  }

  .equipment-table th, .equipment-table td {
    padding: 1.2rem 1rem; /* 進一步增加padding */
    font-size: 1.15rem !important;
  }

  .split-table th, .split-table td {
    font-size: 1.15rem !important;
  }

  .info-card h3, .note-card h4, .timeline-title {
    font-size: 1.5rem !important; /* 進一步增大標題 */
  }
}

@media (max-width: 480px) {
  .family-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem; /* 稍微增加 */
  }

  .family-card-name {
    font-size: 1rem; /* 稍微增大 */
  }

  .hero-title {
    font-size: 2.2rem; /* 調整手機版字體 */
  }

  .hero-cta .btn {
    padding: 1.3rem 2.5rem; /* 調整padding */
  }
}

/* =========================================
   營區位置配置圖 (camp-map)
   ========================================= */
.camp-map-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.5rem 0; /* 稍微增加 */
  display: flex;
  justify-content: center;
}

.camp-map-container {
  width: 1047px;
  height: 718px;
  background-color: white;
  border: 5px solid var(--forest-deep); /* 增強邊框 */
  border-radius: 24px; /* 增大圓角 */
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1); /* 增強陰影 */
  flex-shrink: 0;
  transform-origin: top left;
}

@media (max-width: 1100px) {
  .camp-map-wrapper {
    justify-content: flex-start;
  }
  .camp-map-container {
    transform: scale(0.8);
    transform-origin: top left;
    margin-bottom: -140px;
  }
}

@media (max-width: 850px) {
  .camp-map-container {
    transform: scale(0.6);
    margin-bottom: -285px;
  }
}

@media (max-width: 650px) {
  .camp-map-container {
    transform: scale(0.4);
    margin-bottom: -430px;
  }
}

@media (max-width: 450px) {
  .camp-map-container {
    transform: scale(0.32);
    margin-bottom: -485px;
  }
}

.camp-map-header {
  font-size: 36px; /* 增大 */
  font-weight: 900; /* 增強字重 */
  position: absolute;
  top: 35px; /* 稍微調整 */
  left: 45px; /* 稍微調整 */
  right: 45px;
  border-bottom: 4px solid var(--forest-deep); /* 增強邊框 */
  padding-bottom: 12px; /* 稍微增加 */
  color: var(--forest-deep);
  display: flex;
  align-items: flex-end;
}

.camp-map-date-area {
  font-size: 26px; /* 稍微增大 */
  font-weight: 700; /* 增強字重 */
  margin-left: 35px; /* 稍微增加 */
  color: var(--text-secondary);
}

.camp-box {
  width: 85px; /* 稍微增大 */
  height: 85px;
  border: 3px solid var(--forest); /* 增強邊框 */
  background-color: rgba(122, 158, 107, 0.08); /* 增強背景 */
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px; /* 稍微增加 */
  box-sizing: border-box;
  font-size: 20px; /* 增大 */
  font-weight: 800; /* 增強字重 */
  color: var(--forest-deep);
  border-radius: 10px; /* 增大圓角 */
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
}

.camp-box:hover {
  background-color: var(--sage-light);
  transform: translateY(-3px) scale(1.05); /* 增強效果 */
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* 我們包區的 10 帳 highlight */
.camp-box.highlight {
  background-color: var(--campfire);
  border-color: var(--campfire);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.4); /* 增強陰影 */
}

/* 營位座標設定 */
.pos-e1 { top: 110px; left: 40px; }
.pos-e2 { top: 110px; left: 130px; }
.pos-e3 { top: 110px; left: 220px; }
.pos-e4 { top: 110px; left: 310px; }
.pos-e5 { top: 110px; left: 400px; }

.pos-e6 { top: 160px; left: 580px; }
.pos-e7 { top: 160px; left: 670px; }
.pos-e8 { top: 160px; left: 760px; }
.pos-e9 { top: 160px; left: 850px; }

.pos-s1 { top: 290px; left: 40px; }
.pos-s2 { top: 290px; left: 130px; }
.pos-s3 { top: 290px; left: 220px; }
.pos-s4 { top: 290px; left: 310px; }
.pos-s5 { top: 290px; left: 400px; }

.pos-s10 { top: 380px; left: 40px; }
.pos-s9 { top: 380px; left: 130px; }
.pos-s8 { top: 380px; left: 220px; }
.pos-s7 { top: 380px; left: 310px; }
.pos-s6 { top: 380px; left: 400px; }

.pos-w10 { top: 380px; left: 850px; }

.pos-w7 { top: 380px; left: 580px; }
.pos-w8 { top: 380px; left: 670px; }
.pos-w9 { top: 380px; left: 760px; }

.pos-w6 { top: 470px; left: 580px; }

.pos-w1 { top: 570px; left: 40px; }
.pos-w2 { top: 570px; left: 130px; }
.pos-w3 { top: 570px; left: 220px; }
.pos-w4 { top: 570px; left: 310px; }
.pos-w5 { top: 570px; left: 400px; }

/* --- Album Section --- */
.album-section {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 100%);
  position: relative;
}

.album-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.album-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: #fff;
  padding: 8px;
  margin-bottom: 2rem;
}

.album-frame iframe {
  width: 100% !important;
  height: 600px !important;
  border-radius: 12px !important;
  display: block;
}

.album-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.album-caption a {
  color: var(--sunset);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.album-caption a:hover {
  color: var(--campfire);
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .album-frame iframe {
    height: 400px !important;
  }

  .album-container {
    padding: 0 1rem;
  }
}

/* --- Instagram Style Album Grid --- */
.album-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.loading-spinner {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.album-error {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.error-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.album-image-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  background: #f8f9fa;
}

.album-image-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.album-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-image-card:hover img {
  transform: scale(1.05);
}

.album-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.album-image-card:hover .album-image-overlay {
  opacity: 1;
}

.album-image-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.image-date {
  font-size: 0.8rem;
  opacity: 0.9;
}

.image-caption {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Mobile responsive for album grid */
@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .album-image-card {
    border-radius: 8px;
  }

  .album-image-overlay {
    padding: 0.75rem;
  }
}

/* --- Protected Album Interface --- */
.album-protected {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.protected-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.album-protected h3 {
  color: var(--forest);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.album-protected p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.album-link-btn {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.album-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.album-note strong {
  color: var(--sunset);
}

/* --- Fallback Album Interface --- */
.album-fallback-notice {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.album-links {
  text-align: center;
  margin-top: 2rem;
}

.album-links .album-link-btn {
  margin-bottom: 1rem;
}

/* --- Album Invite Cards --- */
.album-invite-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sand-light) 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.album-invite-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--sunset);
}

.invite-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.invite-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.3;
}

.invite-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(232, 149, 106, 0.9));
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.album-invite-card:hover .invite-overlay {
  opacity: 1;
}

/* Mobile responsive for invite cards */
@media (max-width: 768px) {
  .album-invite-card {
    border-radius: 8px;
    padding: 0.75rem;
  }

  .invite-icon {
    font-size: 2.5rem;
  }

  .invite-text {
    font-size: 0.8rem;
  }
}