/* ============================================================
   R67 作品集展示 H5 — style.css
   CSS 变量驱动 · 375/768/1024/1440 断点
   ============================================================ */

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

:root {
  --color-primary: #7C3AED;
  --color-primary-hover: #6D28D9;
  --color-primary-light: #EDE9FE;
  --color-accent: #A78BFA;
  --color-bg: #FAFAFF;
  --color-bg-card: #FFFFFF;
  --color-bg-hero: linear-gradient(135deg, #FAFAFF, #EDE9FE);
  --color-text-primary: #1E1B4B;
  --color-text-secondary: #5B21B6;
  --color-text-muted: #8B7EC8;
  --color-border: #DDD6FE;
  --color-shadow: rgba(124, 58, 237, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.has-contact-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-bg-card) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.top-bar-inner { display: flex; align-items: center; gap: 12px; padding: 10px 20px; flex-wrap: wrap; }
.top-bar-logo { font-weight: 700; font-size: .875rem; white-space: nowrap; color: inherit; text-decoration: none; }
.nav-links {
  display: none; list-style: none; gap: 14px; align-items: center;
}
.nav-links a { color: var(--color-text-secondary); text-decoration: none; font-size: .8125rem; }
.nav-links a:hover { color: var(--color-primary); }
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--color-primary); transition: .2s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.scene-switcher { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.scene-chip {
  border: 1px solid var(--color-border); background: var(--color-bg-card);
  color: var(--color-text-secondary); border-radius: 999px; padding: 4px 12px;
  font-size: .75rem; cursor: pointer; transition: all .15s;
}
.scene-chip.active, .scene-chip:hover {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.icon-btn {
  border: 1px solid var(--color-border); background: var(--color-bg-card);
  border-radius: var(--radius-sm); width: 36px; height: 36px; cursor: pointer; font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-md); font-size: .9375rem;
  font-weight: 600; border: none; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; }
.btn-copy {
  margin-left: 8px; padding: 2px 10px; font-size: .75rem;
  border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-bg); cursor: pointer; color: var(--color-text-secondary);
}

/* M1 Hero */
.hero-section {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1.1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff; padding: 80px 20px 60px;
}
.hero-avatar-wrap { position: relative; display: inline-block; margin-bottom: 1.25rem; }
.hero-avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.85); box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.hero-status {
  position: absolute; bottom: 4px; right: -4px; font-size: .65rem;
  padding: 3px 8px; border-radius: 999px; font-weight: 600;
}
.hero-status.available { background: #22C55E; color: #fff; }
.hero-status.busy { background: #EF4444; color: #fff; }
.hero-name { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.hero-title { font-size: 1.125rem; opacity: .9; margin-top: .5rem; }
.hero-tagline { font-size: 1rem; opacity: .75; margin-top: .75rem; max-width: 480px; margin-inline: auto; }
.hero-typing {
  font-size: .9375rem; opacity: .85; min-height: 1.5em; margin-top: .5rem;
}
.hero-typing::after { content: '|'; animation: blink 1s infinite; margin-left: 2px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-location { font-size: .875rem; opacity: .65; margin-top: .5rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-cta .btn-secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }
.hero-scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); animation: bounce 2s infinite; font-size: 1.25rem;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: color-mix(in srgb, var(--color-primary-light) 35%, var(--color-bg)); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-align: center; }
.section-desc { text-align: center; color: var(--color-text-muted); margin: .5rem 0 2rem; font-size: .9375rem; }

/* M2 About */
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 2rem; }
.tag-chip {
  padding: 6px 14px; border-radius: 999px; font-size: .8125rem;
  background: var(--color-primary-light); color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
#aboutIntro { max-width: 640px; margin: 0 auto 1.5rem; text-align: center; line-height: 1.8; }
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 640px; margin: 0 auto;
}
.stat-block {
  text-align: center; padding: 20px; border-radius: var(--radius-md);
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px var(--color-shadow);
}
.stat-block-val { display: block; font-size: 1.75rem; font-weight: 800; color: var(--color-primary); }
.stat-block-lbl { font-size: .8125rem; color: var(--color-text-muted); }

/* M3 Skills */
.skills-icons {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 1.5rem;
}
.skill-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .75rem; color: var(--color-text-muted);
}
.skill-icon-item .skill-icon { font-size: 1.5rem; }
.skills-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 720px; margin: 0 auto; }
.skill-card {
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--color-bg-card); border: 1px solid var(--color-border);
}
.skill-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.skill-icon { font-size: 1.25rem; }
.skill-name { flex: 1; font-weight: 600; font-size: .9375rem; }
.skill-pct { font-size: .8125rem; color: var(--color-primary); font-weight: 700; }
.skill-bar { height: 6px; border-radius: 999px; background: var(--color-primary-light); overflow: hidden; }
.skill-fill { height: 100%; border-radius: 999px; background: var(--color-primary); transition: width 1s ease; }

/* M4 Works */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.5rem; }
.filter-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-bg-card); color: var(--color-text-secondary);
  font-size: .8125rem; cursor: pointer; transition: all .15s;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.works-grid { display: grid; gap: 20px; }
.grid-masonry .works-grid { columns: 1; column-gap: 20px; }
.grid-masonry .work-card { break-inside: avoid; margin-bottom: 20px; }
.grid-grid .works-grid { grid-template-columns: 1fr; }
.grid-showcase .works-grid { grid-template-columns: 1fr; }
.grid-bento .works-grid { grid-template-columns: 1fr; }

.work-card {
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  transition: transform .2s, box-shadow .2s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--color-shadow); }
.project-overlay {
  position: absolute; inset: 0; padding: 16px;
  background: rgba(0,0,0,.72); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity .25s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay h3 { font-size: .9375rem; margin-bottom: 6px; }
.project-overlay p { font-size: .75rem; opacity: .85; margin-bottom: 8px; line-height: 1.4; }
.project-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.project-tags .tag-chip { font-size: .65rem; padding: 2px 8px; background: rgba(255,255,255,.15); color: #fff; border: none; }
.work-thumb-wrap { position: relative; overflow: hidden; }
.work-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.work-card:hover .work-thumb { transform: scale(1.05); }
.work-cat-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(4px);
}
.work-card-body { padding: 14px 16px; }
.work-title { font-size: 1rem; font-weight: 700; }
.work-year { font-size: .8125rem; color: var(--color-text-muted); margin-top: 4px; }
.empty-hint { text-align: center; color: var(--color-text-muted); padding: 2rem; }

/* M6 Data Panel */
.data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.data-card {
  padding: 24px 20px; border-radius: var(--radius-md); text-align: center;
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px var(--color-shadow);
}
.data-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.data-val { font-size: 1.75rem; font-weight: 800; color: var(--color-primary); }
.data-lbl { font-size: .8125rem; color: var(--color-text-muted); margin-top: 4px; }
.data-trend { font-size: .75rem; color: var(--color-accent); margin-top: 6px; font-weight: 600; }

/* M7 Contact */
.contact-layout { display: grid; gap: 32px; max-width: 720px; margin: 0 auto; }
.contact-item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.contact-label { font-weight: 600; min-width: 100px; font-size: .9375rem; }
.contact-form {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--color-bg-card); border: 1px solid var(--color-border);
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-bg);
  color: var(--color-text-primary); font-family: inherit; font-size: .9375rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-shadow);
}
.form-success { margin-top: 12px; text-align: center; color: #16A34A; font-size: .875rem; }

/* M5 Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox[hidden] { display: none; }
.lightbox.open[hidden] { display: flex; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 202;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 202;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-content {
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  background: var(--color-bg-card); border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.lightbox-images { line-height: 0; }
.lightbox-img { width: 100%; max-height: 360px; object-fit: cover; display: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lightbox-img.active { display: block; }
.lightbox-info { padding: 24px; }
.lightbox-desc { color: var(--color-text-secondary); line-height: 1.7; margin: 12px 0 16px; }

.back-to-top {
  position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 85;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--color-primary); color: #fff; font-size: 1.125rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .2s; box-shadow: 0 4px 16px var(--color-shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* legacy modal (unused) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--color-bg-card); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.25rem; cursor: pointer;
}
.work-modal-img { width: 100%; max-height: 360px; object-fit: cover; }
.work-modal-info { padding: 24px; }
.work-modal-cat { font-size: .8125rem; color: var(--color-text-muted); }
.work-modal-info h3 { font-size: 1.375rem; margin: 8px 0 12px; }
.work-modal-info p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 16px; }
.work-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.work-modal-metrics { display: flex; gap: 16px; font-size: .875rem; color: var(--color-text-muted); margin-bottom: 16px; }

/* Footer */
.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--color-bg-card) 95%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--color-border);
}
.contact-footer__btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.contact-footer__cta {
  padding: 10px 20px; border-radius: 999px; background: var(--color-primary);
  color: #fff !important; font-weight: 600; font-size: .875rem;
}
.contact-footer__btn {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-bg-card); color: var(--color-text-primary) !important;
  font-size: .8125rem; cursor: pointer; text-decoration: none;
}
.contact-footer__brand {
  text-align: center; font-size: .62rem; color: var(--color-text-muted); margin-top: 6px;
}

/* Responsive */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-links { display: flex; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-grid .works-grid,
  .grid-bento .works-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-masonry .works-grid { columns: 2; }
  .grid-showcase .works-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-showcase .work-card:first-child { grid-column: span 2; }
  .grid-showcase .work-card:first-child .work-thumb { aspect-ratio: 21/9; }
  .data-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

@media (min-width: 1024px) {
  .grid-grid .works-grid,
  .grid-bento .works-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-masonry .works-grid { columns: 3; }
  .grid-showcase .works-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-bento .work-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .grid-bento .work-card:nth-child(1) .work-thumb { aspect-ratio: 1; height: 100%; min-height: 280px; }
}

@media (min-width: 1440px) {
  .container { max-width: 1200px; }
}

/* Mobile AOS fallback */
@media (max-width: 767px) {
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border); padding: 16px; z-index: 101;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Dark mode hero text stays white */
[data-dark="true"] .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.75)); }

/* ===== Share Page ===== */
body.share-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg);
}
.share-card {
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 48px var(--color-shadow);
  text-align: center;
}
.share-card__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.share-avatar-wrap { margin-bottom: 1rem; }
.share-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  margin: 0 auto; border: 3px solid var(--color-primary-light);
  box-shadow: 0 4px 20px var(--color-shadow);
}
.share-card h1 { font-size: 1.375rem; font-weight: 800; margin-bottom: .35rem; }
.share-card__tagline { font-size: .875rem; color: var(--color-text-secondary); margin-bottom: .25rem; }
.share-card__desc { font-size: .8125rem; color: var(--color-text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.share-stats {
  display: flex; justify-content: space-around;
  padding: 14px 0; margin-bottom: 1.25rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.share-stats strong { display: block; font-size: 1.125rem; color: var(--color-primary); font-weight: 800; }
.share-stats span { font-size: .68rem; color: var(--color-text-muted); }
.share-scene-row {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: 1.25rem 0 0;
}
.share-scene-chip {
  padding: 4px 10px; border-radius: 999px; font-size: .7rem;
  border: 1px solid var(--color-border); background: var(--color-bg);
  color: var(--color-text-secondary); text-decoration: none;
}
.share-scene-chip.active, .share-scene-chip:hover {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.share-poster-panel {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--color-border); text-align: left;
}
.share-poster-panel h2 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; text-align: center; }
.share-poster-hint { font-size: .75rem; color: var(--color-text-muted); text-align: center; margin-bottom: 1rem; }
.poster-wrap { margin: 1rem 0; text-align: center; overflow: auto; }
.poster-wrap canvas { max-width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 8px 32px var(--color-shadow); }

/* ===== P1 Timeline / Testimonials / Blog ===== */
.timeline { position: relative; padding: 20px 0; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--color-primary); transform: translateX(-50%); opacity: .35;
}
.timeline-item { position: relative; width: 50%; padding: 0 32px 28px; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--color-bg);
}
.timeline-item.left .timeline-dot { right: -7px; }
.timeline-item.right .timeline-dot { left: -7px; }
.timeline-card {
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px var(--color-shadow);
}
.timeline-year { color: var(--color-primary); font-weight: 700; font-size: .875rem; }
.timeline-card h3 { font-size: 1rem; margin: 6px 0 4px; }
.timeline-company { color: var(--color-text-muted); font-size: .8125rem; margin-bottom: 8px; }
.timeline-card p { font-size: .875rem; color: var(--color-text-secondary); line-height: 1.6; }

.testimonials-carousel { max-width: 560px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-card {
  min-width: 100%; padding: 28px 24px; text-align: center; box-sizing: border-box;
  background: var(--color-bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.testimonial-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; border: 2px solid var(--color-primary-light);
}
.testimonial-text { font-style: italic; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 14px; }
.testimonial-name { font-weight: 700; }
.testimonial-role { font-size: .8125rem; color: var(--color-text-muted); margin-top: 4px; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--color-border); cursor: pointer;
}
.testimonial-dot.active { background: var(--color-primary); transform: scale(1.2); }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.blog-card {
  display: block; padding: 20px; border-radius: var(--radius-md);
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  text-decoration: none; color: inherit; transition: .2s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--color-primary); box-shadow: 0 8px 24px var(--color-shadow); }
.blog-date { font-size: .8125rem; color: var(--color-primary); font-weight: 600; }
.blog-card h3 { font-size: 1.0625rem; margin: 8px 0; }
.blog-card p { font-size: .875rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 12px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding-left: 48px; padding-right: 0; text-align: left !important; left: 0 !important; }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot { left: 13px; right: auto; }
}

/* ===== P2 3D Preview / MiniProgram ===== */
.preview3d-canvas {
  width: 100%; max-width: 520px; margin: 0 auto; min-height: 280px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #111827; border: 1px solid var(--color-border);
}
.preview3d-meta { text-align: center; margin-bottom: 1rem; font-size: .875rem; color: var(--color-text-secondary); }
.preview3d-meta strong { color: var(--color-text-primary); }

body.editor-mode-active .project-overlay {
  pointer-events: none;
  opacity: 0;
}

  padding: 8px 16px; text-align: center; font-size: .75rem;
  background: color-mix(in srgb, var(--color-primary) 15%, var(--color-bg-card));
  border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary);
}

