/* ========================================
   Apple-Inspired Design System
   ======================================== */

/* --- 基础变量（Art Therapy 艺术疗愈系统）--- */
:root {
  /* 背景色 — 温暖奶油 */
  --apple-bg:        #F8F3EE;
  --apple-bg-dark:   #EDE5DA;
  --apple-white:     #FDFAF6;
  --apple-black:     #2C2420;

  /* 文字色 — 暖棕 */
  --apple-text:      #3D3028;
  --apple-text-sec:  #7A6D65;
  --apple-text-ter:  #A09080;

  /* 强调色 — 玫瑰尘 (原绿色位置) */
  --apple-green:     #C07D6E;
  --apple-green-dark: #A06355;

  /* 辅助强调色 */
  --healing-sage:    #7A9E8A;
  --healing-lavender:#A89BC5;
  --healing-rose-pale: #F0D6CC;

  /* 边框 / 卡片 / 导航 */
  --apple-border:    rgba(179, 143, 120, 0.2);
  --apple-card-bg:   #FDFAF6;
  --apple-nav-bg:    rgba(253, 250, 246, 0.88);

  /* 阴影 — 暖调 */
  --apple-shadow:    0 4px 24px rgba(120, 85, 65, 0.1);
  --apple-shadow-lg: 0 12px 40px rgba(120, 85, 65, 0.14);

  /* 圆角 — 略有机 */
  --apple-radius:    20px;
  --apple-radius-sm: 12px;

  /* 字体 */
  --font-apple:      'Raleway', -apple-system, BlinkMacSystemFont,
                     "Helvetica Neue", Arial, sans-serif;
  --nav-height:      52px;
}

[data-bs-theme="dark"] {
  --apple-bg:       #1C1713;
  --apple-bg-dark:  #231E1A;
  --apple-white:    #231E1A;
  --apple-text:     #F0EAE2;
  --apple-text-sec: #C4B8AD;
  --apple-text-ter: #9E9188;
  --apple-green:    #D4957F;
  --apple-green-dark: #B87A65;
  --healing-sage:   #8FB89E;
  --healing-lavender:#B8ACD8;
  --healing-rose-pale: #4A3530;
  --apple-border:   rgba(220, 195, 175, 0.15);
  --apple-card-bg:  #241F1A;
  --apple-nav-bg:   rgba(28, 23, 19, 0.92);
  --apple-shadow:   0 4px 24px rgba(0, 0, 0, 0.4);
  --apple-shadow-lg:0 12px 40px rgba(0, 0, 0, 0.55);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-apple);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-apple);
  color: var(--apple-text);
  background-color: var(--apple-bg);
  padding-top: var(--nav-height);
  margin: 0;
  overflow-x: hidden;
}

/* ========================================
   Apple Navigation Bar
   ======================================== */
.apple-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background-color: var(--apple-nav-bg);
  border-bottom: 1px solid var(--apple-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.apple-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.apple-nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--apple-text) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.apple-nav-brand:hover { opacity: 0.7; }

/* Desktop menu */
.apple-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.apple-nav-menu a {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--apple-text);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  opacity: 0.85;
}
.apple-nav-menu a:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}
[data-bs-theme="dark"] .apple-nav-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Nav Actions (theme + lang) */
.apple-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile hamburger */
.apple-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.apple-nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--apple-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.apple-nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.apple-nav-toggle.active span:nth-child(2) { opacity: 0; }
.apple-nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
@media (max-width: 767px) {
  .apple-nav-toggle { display: flex; }

  .apple-nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
    background-color: var(--apple-nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--apple-border);
    overflow-y: auto;
  }
  .apple-nav-menu.open { display: flex; }

  .apple-nav-menu li { width: 100%; }
  .apple-nav-menu a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--apple-border);
    opacity: 1;
  }
  .apple-nav-menu a:hover { background: transparent; opacity: 0.6; }

  .apple-nav-actions { gap: 0.4rem; }
}

/* --- Theme Toggle --- */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--apple-border);
  background: transparent;
  color: var(--apple-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.1);
}
[data-bs-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.theme-toggle i { font-size: 0.875rem; }

/* --- Language Toggle --- */
.lang-toggle {
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--apple-border);
  background: transparent;
  color: var(--apple-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-apple);
  white-space: nowrap;
}
.lang-toggle:hover { background: rgba(0, 0, 0, 0.08); }
[data-bs-theme="dark"] .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   Loading Screen
   ======================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--apple-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--apple-border);
  border-top-color: var(--apple-text);
  border-radius: 50%;
  animation: apple-spin 0.8s linear infinite;
}
@keyframes apple-spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Scroll-to-top
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.scroll-to-top:hover {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   Fade-in Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Hero / Masthead
   ======================================== */
.masthead {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.masthead .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
}
.masthead .hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  display: block;
}
.masthead .hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.masthead .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}
.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 980px;
  font-family: var(--font-apple);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.apple-btn-primary {
  background: var(--apple-green);
  color: #ffffff;
}
.apple-btn-primary:hover {
  background: var(--apple-green-dark);
  color: #ffffff;
  transform: scale(1.02);
}
.apple-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.apple-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}
.apple-btn-outline-dark {
  background: transparent;
  color: var(--apple-text);
  border: 1.5px solid var(--apple-border);
}
.apple-btn-outline-dark:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--apple-text);
}
[data-bs-theme="dark"] .apple-btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}
.apple-btn:disabled,
.apple-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

/* ========================================
   Section Base
   ======================================== */
.apple-section {
  padding: 5rem 0;
}
.apple-section-lg {
  padding: 7rem 0;
}
.apple-section-dark {
  background: #3D3028;
  color: #F0EAE2;
}
.apple-section-gray {
  background: var(--apple-bg);
}
.apple-section-white {
  background: var(--apple-white);
}

/* Section heading */
.section-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-green);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--apple-text);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--apple-text-sec);
  max-width: 600px;
  line-height: 1.6;
}

.apple-section-dark .section-title   { color: #F0EAE2; }
.apple-section-dark .section-subtitle { color: #C4B8AD; }
.apple-section-dark .section-eyebrow  { color: #D4957F; }

/* ========================================
   About Section
   ======================================== */
.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-content .section-subtitle {
  font-size: 1.125rem;
  max-width: 100%;
  margin: 0 auto 2rem;
}

/* ========================================
   Services / Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--apple-card-bg);
  border-radius: var(--apple-radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--apple-border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-lg);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--apple-green) 0%, var(--healing-lavender) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: white;
}
.feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--apple-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--apple-text-sec);
  line-height: 1.55;
  margin: 0;
}

/* ========================================
   Portfolio / Gallery
   ======================================== */
.portfolio-github-img {
  width: 100%;
  border-radius: var(--apple-radius);
  box-shadow: var(--apple-shadow-lg);
  border: 1px solid var(--apple-border);
  display: block;
  margin: 0 auto;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 575px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--apple-radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  text-decoration: none;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.portfolio-item:hover img { transform: scale(1.06); }

/* Caption overlay — transparent, darkens on hover (no blue) */
.portfolio-item .caption {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.35s ease;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  z-index: 1;
}
.portfolio-item:hover .caption {
  background: rgba(0, 0, 0, 0.52) !important;
}

.caption-content {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.portfolio-item:hover .caption-content {
  opacity: 1;
  transform: translateY(0);
}
.caption-content h2 {
  font-size: 1.125rem !important;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
  text-transform: none !important;
  letter-spacing: -0.01em;
}
.caption-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.45;
  font-weight: 300 !important;
}

/* ========================================
   Blog Cards
   ======================================== */
.blog-card {
  background: var(--apple-card-bg);
  border-radius: var(--apple-radius);
  overflow: hidden;
  border: 1px solid var(--apple-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--apple-shadow-lg);
}
.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-category {
  display: inline-block;
  background: rgba(192, 125, 110, 0.1);
  color: var(--apple-green);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--apple-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--apple-text-ter);
  margin-bottom: 0.75rem;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--apple-text-sec);
  flex: 1;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card-link {
  font-size: 0.875rem;
  color: var(--apple-green);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.blog-card-link:hover {
  color: var(--apple-green);
  gap: 8px;
}

/* ========================================
   Blog Post Detail Page
   ======================================== */
.blog-post-header {
  padding: 5rem 0 3.5rem;
  background: linear-gradient(160deg, #3D3028 0%, #2C2420 100%);
  color: #F0EAE2;
  text-align: center;
}
[data-bs-theme="dark"] .blog-post-header {
  background: linear-gradient(160deg, #1C1713 0%, #110D0A 100%);
}
.blog-post-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #f5f5f7;
}
.blog-post-meta {
  font-size: 0.9375rem;
  color: rgba(245, 245, 247, 0.6);
}
.blog-post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  font-family: 'Noto Serif SC', 'Georgia', serif;
  font-size: 1.0625rem;
  line-height: 2.0;
  color: var(--apple-text);
  background: #faf8f4;
}
[data-bs-theme="dark"] .blog-post-content {
  background: #1a1915;
}
.blog-post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}
.blog-post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--apple-text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-post-content p {
  color: var(--apple-text-sec);
  margin-bottom: 1.75rem;
}
.blog-post-content > p:first-of-type::first-letter {
  font-size: 3.6em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 0.08em 0.1em 0 0;
  color: var(--apple-text);
}
.blog-post-content img {
  max-width: 100%;
  border-radius: var(--apple-radius-sm);
  margin: 2.5rem auto;
  display: block;
}
.blog-post-content blockquote {
  border-left: 2px solid #b5926a;
  margin: 2.5rem 0;
  padding: 0.75rem 2rem;
  font-style: italic;
  color: #8b7355;
  background: rgba(181, 146, 106, 0.06);
  border-radius: 0 8px 8px 0;
  line-height: 1.9;
}
[data-bs-theme="dark"] .blog-post-content blockquote {
  background: rgba(181, 146, 106, 0.08);
  color: #c4a882;
}
.blog-post-content code {
  background: var(--apple-bg);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
  font-size: 0.875em;
}
.blog-post-content pre {
  background: var(--apple-bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--apple-radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(160deg, #EDE0D4 0%, #D4C0B0 40%, #C9AFA0 100%);
  color: #3D3028;
  padding: 5rem 0;
  text-align: center;
}
.cta-section .section-title { color: #3D3028; }
.cta-section .section-subtitle { color: #7A6D65; }
[data-bs-theme="dark"] .cta-section {
  background: linear-gradient(160deg, #2C2420 0%, #1C1713 100%);
  color: #F0EAE2;
}
[data-bs-theme="dark"] .cta-section .section-title { color: #F0EAE2; }
[data-bs-theme="dark"] .cta-section .section-subtitle { color: #C4B8AD; }

/* ========================================
   Contact Section
   ======================================== */
.apple-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--apple-text-sec);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.apple-form .form-control {
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-sm);
  color: var(--apple-text);
  font-family: var(--font-apple);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}
.apple-form .form-control:focus {
  border-color: var(--apple-green);
  box-shadow: 0 0 0 3px rgba(192, 125, 110, 0.22);
  background: var(--apple-card-bg);
  color: var(--apple-text);
  outline: none;
}
.apple-form .form-control::placeholder { color: var(--apple-text-ter); }
.apple-form.was-validated .form-control:invalid,
.apple-form .form-control.is-invalid {
  border-color: #ff453a;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.18);
}
.apple-form .invalid-feedback {
  display: none;
  font-size: 0.8125rem;
  color: #ff453a;
  margin-top: 0.35rem;
}
.apple-form.was-validated .form-control:invalid ~ .invalid-feedback,
.apple-form .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* ========================================
   Footer
   ======================================== */
.apple-footer {
  background: #2C2420;
  color: #C4B8AD;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
}
.apple-footer a {
  color: #C4B8AD;
  text-decoration: none;
  transition: color 0.2s ease;
}
.apple-footer a:hover { color: #F0EAE2; }
.apple-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(196, 184, 173, 0.3);
  color: #C4B8AD;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-icon:hover {
  border-color: rgba(192, 125, 110, 0.6);
  color: #D4957F;
}

/* ========================================
   Spacing utilities (match Bootstrap)
   ======================================== */
.mx-auto  { margin-right: auto !important; margin-left: auto !important; }
.my-auto  { margin-top: auto !important; margin-bottom: auto !important; }
.me-4     { margin-right: 1.5rem !important; }
.mb-0     { margin-bottom: 0 !important; }
.mb-1     { margin-bottom: .25rem !important; }
.mb-3     { margin-bottom: 1rem !important; }
.mb-4     { margin-bottom: 1.5rem !important; }
.mb-5     { margin-bottom: 3rem !important; }
@media (min-width: 992px) {
  .mb-lg-0 { margin-bottom: 0 !important; }
}

/* ========================================
   Dark mode refinements
   ======================================== */
[data-bs-theme="dark"] .feature-card {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .blog-card {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .apple-form .form-control {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f7;
}
[data-bs-theme="dark"] .apple-form .form-control:focus {
  background: #2c2c2e;
}
[data-bs-theme="dark"] .portfolio-github-img {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .apple-section-white {
  background: #1C1713;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
  .apple-section     { padding: 4rem 0; }
  .apple-section-lg  { padding: 5rem 0; }
  .section-title     { font-size: 2.25rem; }
}
@media (max-width: 767px) {
  .apple-section     { padding: 3rem 0; }
  .features-grid     { grid-template-columns: 1fr 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr; }
  .blog-post-content { padding: 2rem 1rem 3rem; }
}
@media (max-width: 479px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Enhancement: Space Grotesk Headings
   ======================================== */
:root {
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
}
.section-title,
.hero-title,
.blog-post-title,
.caption-content h2 {
  font-family: var(--font-heading);
}

/* ========================================
   Enhancement: Scroll Progress Bar
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--apple-green) 0%, var(--healing-lavender) 100%);
  z-index: 100000;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ========================================
   Enhancement: Cursor Pointer on Clickables
   ======================================== */
.feature-card,
.portfolio-item,
.blog-card {
  cursor: pointer;
}

/* ========================================
   Enhancement: About Two-Column Layout
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
}
.about-text-col {
  text-align: left;
}
.about-text-col .section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}
.about-photo-col {
  display: flex;
  justify-content: center;
}
.about-photo-wrap {
  position: relative;
  width: 270px;
  height: 270px;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  border: 1px solid var(--apple-border);
  box-shadow: var(--apple-shadow-lg);
  display: block;
  position: relative;
  z-index: 1;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 44px;
  border: 1.5px dashed rgba(192, 125, 110, 0.3);
  animation: rotateRing 24s linear infinite;
  z-index: 0;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 56px;
  border: 1px dashed rgba(168, 155, 197, 0.2);
  animation: rotateRing 36s linear infinite reverse;
  z-index: 0;
}
@keyframes rotateRing {
  to { transform: rotate(360deg); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr 260px; gap: 3rem; }
}
@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .about-text-col { text-align: center; }
  .about-photo-col { order: -1; }
  .about-photo-wrap { width: 200px; height: 200px; }
}

/* ========================================
   Enhancement: Skill Tags
   ======================================== */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}
.skill-tag {
  display: inline-block;
  background: rgba(192, 125, 110, 0.07);
  color: var(--apple-green);
  border: 1px solid rgba(192, 125, 110, 0.2);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
[data-bs-theme="dark"] .skill-tag {
  background: rgba(212, 149, 127, 0.12);
  border-color: rgba(212, 149, 127, 0.25);
  color: #D4957F;
}

/* ========================================
   Enhancement: Feature Icon Hover Animation
   ======================================== */
.feature-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon {
  transform: scale(1.14) rotate(6deg);
}

/* ========================================
   Enhancement: Hero Animated Blue Glow + Staggered Entry
   ======================================== */
.masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 70% at 50% 115%,
    rgba(192, 125, 110, 0.28) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}
/* Hero content staggered entry (triggers when masthead gets .visible) */
.masthead.visible .hero-eyebrow  { animation: heroFadeUp 0.85s 0.30s ease both; }
.masthead.visible .hero-title    { animation: heroFadeUp 0.85s 0.52s ease both; }
.masthead.visible .hero-subtitle { animation: heroFadeUp 0.85s 0.70s ease both; }
.masthead.visible .apple-btn     { animation: heroFadeUp 0.85s 0.90s ease both; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Enhancement: Mobile Fix — Disable Parallax
   ======================================== */
@media (max-width: 767px) {
  .masthead { background-attachment: scroll; }
}

/* ========================================
   Enhancement: CTA Section Dot Grid
   ======================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(120,85,65,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* ========================================
   Enhancement: Prefers Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  #hero-video { display: none; }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .masthead.visible .hero-eyebrow,
  .masthead.visible .hero-title,
  .masthead.visible .hero-subtitle,
  .masthead.visible .apple-btn {
    animation: none;
  }
  .about-photo-wrap::before,
  .about-photo-wrap::after {
    animation: none;
  }
  .loading-spinner {
    animation: none;
  }
}

/* ========================================
   Research Timeline
   ======================================== */
/* ========================================
   Timeline — 3-column grid layout
   ======================================== */
.research-timeline {
  position: relative;
  padding: 2rem 0 3rem;
  margin-bottom: 4rem;
}

/* Vertical axis line through centre column */
.research-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, var(--apple-border) 8%,
              var(--apple-border) 92%, transparent 100%);
  pointer-events: none;
}

/* [visual 1fr] | [axis 60px] | [text 1fr] — top-aligned */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  gap: 0 2rem;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item.tl-visible { opacity: 1; transform: translateY(0); }
.timeline-item:nth-child(2) { transition-delay: 0.15s; }

/* Left column: visual, right-aligned towards axis */
.timeline-visual-col {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

/* Centre column: dot */
.timeline-axis-col {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--apple-green);
  border: 3px solid var(--apple-card-bg, #fff);
  box-shadow: 0 0 0 2px var(--apple-green);
  flex-shrink: 0;
}

/* Right column: text */
.timeline-text { min-width: 0; }

/* Two buttons side by side below chip-viewer */
.chip-btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Date badge */
.timeline-date-badge {
  display: inline-block;
  background: rgba(192, 125, 110, 0.1);
  color: var(--apple-green);
  border: 1px solid rgba(192, 125, 110, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 0.75rem;
}

.timeline-org {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--apple-text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.timeline-role {
  font-size: 0.8125rem;
  color: var(--apple-text-sec);
  font-weight: 500;
  margin: 0 0 0.85rem;
}

.timeline-bullets {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}
.timeline-bullets li {
  font-size: 0.875rem;
  color: var(--apple-text-sec);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

/* Awards toggle */
.timeline-awards-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--apple-green);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-bottom: 0;
}
.timeline-awards-toggle:hover {
  background: rgba(192, 125, 110, 0.07);
  border-color: var(--apple-green);
}
.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}
.timeline-awards-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Awards list */
.timeline-awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
}
.timeline-awards-list.open {
  max-height: 600px;
  padding-top: 0.75rem;
}
.timeline-awards-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.8125rem;
  color: var(--apple-text-sec);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--apple-border);
  line-height: 1.5;
}
.timeline-awards-list li:last-child { border-bottom: none; }
.award-year {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--apple-green);
  font-size: 0.75rem;
  min-width: 72px;
}

/* ── Circular image (node 1) ── */
.timeline-circle-wrap {
  position: relative;
}
.timeline-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: crosshair;
}
.circle-layer-1 { position: absolute; inset: 0; }
.circle-layer-1 .circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5) translate(0%, 0%);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.circle-layer-2 {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--apple-text);
  letter-spacing: 0.05em;
}
.timeline-circle:hover .circle-layer-2 { opacity: 1; }
.circle-glow {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(192,125,110,0.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

/* ── Chip assembly viewer (node 2) ── */
.timeline-chip-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.chip-viewer {
  position: relative;
  width: 380px;
  aspect-ratio: 338.7 / 190.5;
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius);
  overflow: hidden;
  box-shadow: var(--apple-shadow);
}
.chip-layer {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
}
.chip-bg  { left:14.61%; top:17.32%; width:74.17%; height:70.76%; opacity: 1; }
.chip-l1  { left:37.38%; top:35.85%; width:24.74%; height:31.23%; }
.chip-l2  { left:26.60%; top:23.69%; width:35.37%; height:37.69%; }
.chip-l3a { left:42.46%; top:49.94%; width:13.85%; height:14.80%; }
.chip-l3b { left:32.89%; top:31.74%; width:25.33%; height:25.88%; }
.chip-l4  { left:65.75%; top:52.86%; width:28.76%; height:41.94%; }
.chip-label-badge {
  position: absolute;
  left: 4.31%; top: 73.70%;
  width: 58.72%; height: 16.17%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
}
.chip-badge-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--apple-green);
  white-space: nowrap;
}
.chip-badge-sub {
  font-size: 0.6rem;
  color: var(--apple-text-sec);
  white-space: nowrap;
}
.chip-replay-btn {
  background: none;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--apple-muted, var(--apple-text-sec));
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip-replay-btn:hover {
  background: var(--apple-green);
  color: #fff;
  border-color: var(--apple-green);
}

/* Chip assembly keyframes */
@keyframes chip-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes chip-drop {
  from { top: 14.80%; opacity: 0; }
  to   { top: 23.69%; opacity: 1; }
}
@keyframes chip-rise {
  from { top: 58.74%; opacity: 0; }
  to   { top: 49.94%; opacity: 1; }
}
@keyframes chip-drop-b {
  from { top: 21.21%; opacity: 0; }
  to   { top: 31.74%; opacity: 1; }
}
@keyframes chip-wipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}
@keyframes chip-bounce {
  0%   { top: 16.59%; opacity: 0; }
  60%  { top: 76.00%; opacity: 1; }
  80%  { top: 71.00%; }
  100% { top: 73.70%; }
}

/* Triggered by .chip-animate class */
.chip-viewer.chip-animate .chip-l1  { animation: chip-fade-in 0.5s ease         forwards 0.3s; }
.chip-viewer.chip-animate .chip-l2  { animation: chip-drop    0.7s ease         forwards 0.8s; }
.chip-viewer.chip-animate .chip-l3a { animation: chip-rise    0.6s ease         forwards 1.4s; }
.chip-viewer.chip-animate .chip-l3b { animation: chip-drop-b  0.6s ease         forwards 1.4s; }
.chip-viewer.chip-animate .chip-l4  { animation: chip-wipe    0.5s ease         forwards 1.4s; }
.chip-viewer.chip-animate .chip-label-badge {
  animation: chip-bounce 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards 2.2s;
}

/* ──────── Mobile timeline ──────── */
@media (max-width: 767px) {
  .research-timeline::before { left: 20px; transform: none; }
  .timeline-item {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    margin-bottom: 4rem;
  }
  .timeline-visual-col {
    grid-column: 1 / -1;
    justify-content: center;
    padding-bottom: 1.5rem;
  }
  .timeline-axis-col { grid-column: 1; grid-row: 2; padding-top: 0.5rem; }
  .timeline-text     { grid-column: 2; grid-row: 2; }
  .timeline-circle { width: 220px; height: 220px; }
  .circle-glow { width: 140px; }
  .chip-viewer { width: 100%; max-width: 340px; }
  .chip2-wrap  { width: 100% !important; max-width: 340px; }
}

/* ── Chip2 interactive hotspot diagram (Plan B) ── */
.chip2-toggle-btn {
  background: none;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--apple-muted, var(--apple-text-sec));
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip2-toggle-btn:hover {
  background: rgba(192, 125, 110, 0.12);
  color: var(--apple-green);
  border-color: var(--apple-green);
}
.chip2-toggle-btn[aria-expanded="true"] {
  background: var(--apple-green);
  color: #fff;
  border-color: var(--apple-green);
}

.chip2-wrap {
  width: 380px;
  margin-top: 0.75rem;
}

.chip2-viewer {
  position: relative;
  width: 100%;
  border-radius: var(--apple-radius);
  overflow: hidden;
  box-shadow: var(--apple-shadow);
}

.chip2-base {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--apple-radius);
}

/* SVG overlay covers the image exactly */
.chip2-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Default zone: invisible */
.chip2-zone {
  fill: transparent;
  stroke: transparent;
  stroke-width: 40;
  cursor: pointer;
  pointer-events: fill;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Per-colour hover states */
.chip2-zone[data-color="blue"]:hover  { fill: rgba(168,155,197,0.25);  stroke: rgba(168,155,197,0.7);  }
.chip2-zone[data-color="green"]:hover { fill: rgba(122,158,138,0.25);  stroke: rgba(122,158,138,0.7);  }
.chip2-zone[data-color="teal"]:hover  { fill: rgba(192,125,110,0.2); stroke: rgba(192,125,110,0.6); }
.chip2-zone[data-color="pink"]:hover  { fill: rgba(255,45,85,0.15);  stroke: rgba(255,45,85,0.55); }
.chip2-zone[data-color="red"]:hover   { fill: rgba(255,59,48,0.15);  stroke: rgba(255,59,48,0.55); }

/* Dim non-hovered zones */
.chip2-overlay.has-hover .chip2-zone:not(:hover) { opacity: 0.3; }

/* Floating tooltip */
.chip2-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--apple-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}
[data-bs-theme="dark"] .chip2-tooltip {
  background: rgba(28,28,30,0.92);
}
.chip2-tooltip.visible { opacity: 1; }
.chip2-tip-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--apple-green);
  white-space: nowrap;
}
.chip2-tip-desc {
  font-size: 0.65rem;
  color: var(--apple-text-sec);
  line-height: 1.4;
}

/* ========================================
   Skills Split
   ======================================== */
.skills-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Tab navigation (left column) */
.skills-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.skill-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-sm);
  padding: 0.75rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--apple-text-sec);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.skill-tab-btn i { font-size: 1rem; }
.skill-tab-btn:hover {
  background: rgba(192, 125, 110, 0.06);
  color: var(--apple-text);
  border-color: rgba(192, 125, 110, 0.3);
}
.skill-tab-btn.active {
  background: var(--apple-green);
  color: #fff;
  border-color: var(--apple-green);
  box-shadow: 0 4px 14px rgba(192, 125, 110, 0.35);
}
.skill-tab-btn.active i { color: #fff; }

/* Panels */
.skills-panels { min-height: 320px; }

.skill-panel { display: none; opacity: 0; }
.skill-panel.active { display: block; opacity: 1; animation: panelFadeIn 0.25s ease both; }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-panel.active { animation: none; }
}

/* ──────── Bioinformatics panel ──────── */
.bio-skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.bio-skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bio-skill-item {
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-sm);
  padding: 0.9rem 1.1rem;
}
.bio-skill-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--apple-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.bio-skill-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--apple-text-sec);
  line-height: 1.55;
}

/* ──────── Image carousel ──────── */
.viz-carousel {
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius);
  overflow: hidden;
  position: relative;
}
.viz-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.viz-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.viz-carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--apple-bg);
  display: block;
}
.viz-caption {
  font-size: 0.75rem;
  color: var(--apple-text-ter);
  text-align: center;
  padding: 0.5rem 0.75rem 0.35rem;
  margin: 0;
  font-weight: 500;
}
.viz-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.75rem;
}
.viz-btn {
  background: none;
  border: 1px solid var(--apple-border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--apple-text-sec);
  font-size: 0.7rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.viz-btn:hover { background: rgba(192,125,110,0.1); border-color: var(--apple-green); color: var(--apple-green); }
.viz-dots { display: flex; gap: 6px; }
.viz-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-border);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  border: none;
  padding: 0;
}
.viz-dot.active { background: var(--apple-green); transform: scale(1.3); }

/* ──────── Wet lab panel ──────── */
.wetlab-intro, .web-intro {
  font-size: 0.9375rem;
  color: var(--apple-text-sec);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.wetlab-groups { display: flex; flex-direction: column; gap: 1.25rem; }
.wetlab-group {}
.wetlab-group-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-text-ter);
  margin-bottom: 0.6rem;
}

/* ──────── Web design panel ──────── */
.web-projects {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}
.web-project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-sm);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--apple-text);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.web-project-card:hover {
  box-shadow: var(--apple-shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(192,125,110,0.3);
}
.web-project-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.web-project-info { flex: 1; }
.web-project-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apple-text);
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}
.web-project-desc {
  font-size: 0.8125rem;
  color: var(--apple-text-sec);
  margin: 0;
}
.web-project-link-icon {
  color: var(--apple-text-ter);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.web-project-card:hover .web-project-link-icon { color: var(--apple-green); }

/* ──────── Mobile skills split ──────── */
@media (max-width: 767px) {
  .skills-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .skills-tab-nav {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    gap: 0.5rem;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .skills-tab-nav::-webkit-scrollbar { display: none; }
  .skill-tab-btn {
    flex-shrink: 0;
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
  .bio-skills-layout {
    grid-template-columns: 1fr;
  }
  .viz-carousel-slide img { height: 180px; }
}


/* ========================================
   Academic Portfolio — Vision & Philosophy
   ======================================== */
.acad-quote {
  margin: 0 auto 3.5rem;
  max-width: 780px;
  padding: 1.75rem 2.25rem;
  background: linear-gradient(135deg,
    rgba(192, 125, 110, 0.07) 0%,
    rgba(168, 155, 197, 0.04) 100%);
  border-left: 3px solid var(--apple-green);
  border-radius: 0 var(--apple-radius) var(--apple-radius) 0;
  text-align: left;
}
.acad-quote p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--apple-text);
  margin: 0;
  line-height: 1.75;
  font-weight: 300;
}

.acad-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 900px) { .acad-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .acad-pillars { grid-template-columns: 1fr; } }

.acad-pillar {
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius);
  padding: 1.875rem 1.625rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: default;
}
.acad-pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--apple-shadow-lg);
  border-color: rgba(192, 125, 110, 0.35);
}
.acad-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(192,125,110,0.15) 0%, rgba(168,155,197,0.1) 100%);
}
.acad-pillar-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--apple-green);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.acad-pillar-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--apple-text);
  margin: 0 0 0.55rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.acad-pillar-desc {
  font-size: 0.875rem;
  color: var(--apple-text-sec);
  line-height: 1.65;
  margin: 0;
}

/* Research interest tags */
.acad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.acad-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(192, 125, 110, 0.08);
  color: var(--apple-green);
  border: 1px solid rgba(192, 125, 110, 0.22);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.acad-tag:hover {
  background: rgba(192, 125, 110, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 125, 110, 0.15);
}

/* ========================================
   Blog — Featured Post Card
   ======================================== */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--apple-card-bg);
  border-radius: var(--apple-radius);
  overflow: hidden;
  border: 1px solid var(--apple-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.blog-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--apple-shadow-lg);
}
.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}
.blog-featured-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.blog-featured-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-green);
  margin-bottom: 0.35rem;
}
.blog-featured-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--apple-text);
  margin: 0 0 0.6rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.blog-featured-excerpt {
  font-size: 0.9375rem;
  color: var(--apple-text-sec);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
}
@media (max-width: 767px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; max-height: 260px; }
  .blog-featured-body { padding: 1.5rem; }
}

/* Blog sub-cards row (posts 2 & 3) */
.blog-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 575px) {
  .blog-sub-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Scroll Progress — Green gradient update
   ======================================== */
.scroll-progress {
  background: linear-gradient(90deg, var(--apple-green) 0%, var(--healing-lavender) 100%);
}

/* ========================================
   Bookshelf — Shared Layout
   ======================================== */

/* Section wrapper */
.bookshelf-section {
  padding: 0.25rem 0 2rem;
}

/* Shelf row label */
.shelf-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding-left: 0.25rem;
}
.shelf-header-icon {
  font-size: 1rem;
  line-height: 1;
}
.shelf-header-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apple-text);
  letter-spacing: -0.01em;
}

/* Horizontal row of books */
.shelf-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelf-row::-webkit-scrollbar { display: none; }

/* Wooden plank below the row */
.shelf-plank {
  height: 20px;
  background: linear-gradient(to bottom,
    #f0d494 0%,
    #e8c98a 6%,
    #d4aa74 18%,
    #c49452 45%,
    #b8843e 72%,
    #a87830 88%,
    #8a6020 100%);
  border-radius: 0 0 5px 5px;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.28),
    0 2px 4px rgba(0,0,0,0.18),
    inset 0 2px 2px rgba(255,255,255,0.28),
    inset 0 -2px 4px rgba(0,0,0,0.18);
  margin-bottom: 0.25rem;
}

/* ── Book Card ── */
.book-card {
  position: relative;
  width: 118px;
  min-width: 118px;
  height: 178px;
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    3px 3px 10px rgba(0,0,0,0.25),
    inset -3px 0 6px rgba(0,0,0,0.12);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease;
  text-decoration: none;
}
.book-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    6px 14px 28px rgba(0,0,0,0.32),
    inset -3px 0 6px rgba(0,0,0,0.12);
}

/* Cover image (blog posts) */
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Solid-colour cover (books / movies without image) */
.book-cover-color {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  gap: 6px;
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.38) 0px,
      rgba(0,0,0,0.14) 9px,
      rgba(0,0,0,0.04) 14px,
      transparent 18px,
      transparent calc(100% - 3px),
      rgba(255,255,255,0.14) 100%
    ),
    var(--book-color, #c9846a);
}
.book-cover-color .book-spine-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-align: center;
  line-height: 1.35;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-cover-color .book-spine-author {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-cover-color .book-spine-year {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  margin-top: auto;
}

/* Hover overlay */
.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 9px;
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}
.book-card:hover .book-overlay {
  opacity: 1;
}
.book-overlay-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-overlay-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.book-overlay-btn {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  background: var(--apple-green);
  border-radius: 20px;
  padding: 3px 9px;
  text-decoration: none;
  align-self: flex-start;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.book-overlay-btn:hover { background: var(--apple-green-dark); color: #fff; }
.book-overlay-read-more {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
  letter-spacing: 0.02em;
}

/* Status badge (已读 / 在读) */
.book-status-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}
.badge-read {
  background: rgba(122,158,138,0.88);
  color: #fff;
}
.badge-reading {
  background: rgba(64,156,255,0.88);
  color: #fff;
}

/* Category badge on blog books */
.book-cat-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.9);
  z-index: 2;
  pointer-events: none;
}

/* ── Bookshelf Tabs (bookshelf.html) ── */
.shelf-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--apple-border);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.shelf-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--apple-text-sec);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-radius: 0;
}
.shelf-tab-btn:hover { color: var(--apple-text); }
.shelf-tab-btn.active {
  color: var(--apple-green);
  border-bottom-color: var(--apple-green);
  font-weight: 600;
}

/* Sub-tabs (在读 / 已读) */
.shelf-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.shelf-subtab-btn {
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--apple-text-sec);
  cursor: pointer;
  transition: all 0.2s ease;
}
.shelf-subtab-btn:hover { border-color: var(--apple-green); color: var(--apple-text); }
.shelf-subtab-btn.active {
  background: var(--apple-green);
  border-color: var(--apple-green);
  color: #fff;
  font-weight: 600;
}

/* Tab content panels */
.shelf-panel { display: none; }
.shelf-panel.active { display: block; }

/* Movies grid (bookshelf.html) */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 16px 12px;
  padding: 0.5rem 0 1rem;
}

/* Bookshelf page header */
.bookshelf-page-header {
  padding: 5rem 0 2.5rem;
  text-align: center;
}
.bookshelf-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-text);
  margin-bottom: 0.5rem;
}
.bookshelf-page-sub {
  font-size: 1rem;
  color: var(--apple-text-sec);
}

/* Books grid (bookshelf.html) */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 16px 12px;
  padding: 0.5rem 0 1rem;
}

/* Blog grid (bookshelf.html) */
.blog-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 0.5rem 0 1rem;
}
.blog-books-grid .book-card {
  width: 100%;
  min-width: unset;
  height: 220px;
}

/* ── Dark mode adjustments ── */
[data-bs-theme="dark"] .shelf-plank {
  background: linear-gradient(to bottom,
    #6a4a28 0%,
    #5a3e20 10%,
    #4a3018 40%,
    #3c2410 72%,
    #2a1a0c 88%,
    #1e1208 100%);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.5),
    0 2px 4px rgba(0,0,0,0.35),
    inset 0 2px 2px rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.35);
}
[data-bs-theme="dark"] .book-card {
  box-shadow:
    3px 3px 10px rgba(0,0,0,0.5),
    inset -3px 0 6px rgba(0,0,0,0.25);
}
[data-bs-theme="dark"] .book-card:hover {
  box-shadow:
    6px 14px 28px rgba(0,0,0,0.6),
    inset -3px 0 6px rgba(0,0,0,0.25);
}

/* ── Responsive ── */
@media (max-width: 575px) {
  .book-card { width: 100px; min-width: 100px; height: 152px; }
  .blog-books-grid .book-card { height: 180px; }
  .movies-grid, .books-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ========================================
   Art Therapy — 艺术疗愈风格专属样式
   ======================================== */

/* 纸张颗粒感纹理 — 全页叠加 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
}

/* 有机波浪分隔线 — section 顶部装饰 */
.apple-section-gray::before {
  content: '';
  display: block;
  height: 60px;
  margin-top: -60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,20 1440,30 L1440,60 L0,60 Z' fill='%23F8F3EE'/%3E%3C/svg%3E") center/cover no-repeat;
  pointer-events: none;
}
[data-bs-theme="dark"] .apple-section-gray::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,20 1440,30 L1440,60 L0,60 Z' fill='%231C1713'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* 呼吸动画 — hero 区域微脉动 */
@keyframes healingBreath {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.012); }
}
.hero-eyebrow {
  animation: healingBreath 5s ease-in-out infinite;
  animation-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow { animation: none; }
}

/* 标题字体 — Lora 衬线专属样式 */
.hero-title,
.section-title,
.blog-post-title,
.blog-featured-title,
.caption-content h2 {
  font-family: var(--font-heading);
  font-style: normal;
  letter-spacing: -0.02em;
}

/* 引言斜体 — hero-subtitle 使用斜体 Lora */
.hero-subtitle em,
.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* section-eyebrow — 细体衬线感 */
.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* 暖色调按钮 — 主色调更新 */
.apple-btn-primary {
  background: var(--apple-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 125, 110, 0.3);
}
.apple-btn-primary:hover {
  background: var(--apple-green-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(192, 125, 110, 0.4);
  transform: translateY(-1px) scale(1.02);
}

/* 卡片 — 柔软有机感 */
.feature-card,
.bio-skill-item,
.acad-pillar,
.web-project-card {
  border-radius: var(--apple-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover,
.acad-pillar:hover {
  box-shadow: var(--apple-shadow-lg);
  border-color: rgba(192, 125, 110, 0.3);
}

/* 暖色 loading spinner */
.loading-spinner {
  border-color: rgba(192, 125, 110, 0.2);
  border-top-color: var(--apple-green);
}

/* 鼠尾草绿 — 第二强调色辅助使用 */
.timeline-dot {
  background: var(--healing-sage);
  box-shadow: 0 0 0 2px var(--healing-sage);
  border-color: var(--apple-card-bg);
}

/* 有机形状装饰 — About 区块背景点缀 */
#about::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 20%;
  width: 320px;
  height: 320px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  background: radial-gradient(ellipse, rgba(168,155,197,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#about {
  position: relative;
  overflow: hidden;
}
#about .container { position: relative; z-index: 1; }

/* services 区块有机装饰 */
#services::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: 10%;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: radial-gradient(ellipse, rgba(192,125,110,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#services {
  position: relative;
  overflow: hidden;
}
#services .container { position: relative; z-index: 1; }

/* 水彩渐变 — contact section 点缀 */
#contact {
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(192,125,110,0.06) 0%, rgba(168,155,197,0.04) 50%, transparent 70%);
  pointer-events: none;
}
#contact .container { position: relative; z-index: 1; }

/* 深色模式 — 有机装饰更深 */
[data-bs-theme="dark"] #about::after {
  background: radial-gradient(ellipse, rgba(168,155,197,0.06) 0%, transparent 70%);
}
[data-bs-theme="dark"] #services::after {
  background: radial-gradient(ellipse, rgba(192,125,110,0.05) 0%, transparent 70%);
}

/* hero overlay 暖化 */
.masthead::before {
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 32, 0.3) 0%,
    rgba(44, 36, 32, 0.1) 50%,
    rgba(44, 36, 32, 0.5) 100%
  );
}

/* 引言样式 — acad-quote 字体更温暖 */
.acad-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
}
