/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 - 橙色 */
  --primary-color: #FF7F50;
  --primary-light: #FFA07A;
  --primary-dark: #E5673D;

  /* 马卡龙色系 */
  --macaron-pink: #FFB6C1;
  --macaron-blue: #87CEEB;
  --macaron-green: #98FB98;
  --macaron-yellow: #FFFACD;
  --macaron-purple: #DDA0DD;

  /* 背景和文字 */
  --bg-color: #FAFAFA;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #E0E0E0;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

.page-home,
.page-work {
  --surface: #ffffff;
  --surface-elevated: #fbf9f7;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
}

.page-home {
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f2ed 48%, #faf8f5 100%);
  color: var(--ink);
}

.page-work {
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f2ed 48%, #faf8f5 100%);
  color: var(--ink);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* 首页 / 作品详情 — 顶栏玻璃 */
.page-home .navbar-glass,
.page-work .navbar-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.page-home .nav-inner,
.page-work .nav-inner {
  max-width: 1200px;
}

.page-home .logo,
.page-work .logo {
  gap: 10px;
}

.page-home .logo-mark,
.page-work .logo-mark {
  width: 10px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--macaron-pink));
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.35);
}

.page-home .logo-text,
.page-work .logo-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--ink);
}

.page-home .logo img,
.page-work .logo img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.page-home .nav-links a,
.page-work .nav-links a {
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.page-home .nav-cta,
.page-work .nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-color), #ff9a6b);
  color: #fff !important;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(255, 127, 80, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-home .nav-cta:hover,
.page-work .nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 127, 80, 0.45);
}

/* ===== 首页 Hero（高端） ===== */
.page-home .hero.hero-premium {
  position: relative;
  min-height: min(92vh, 900px);
  padding: clamp(100px, 14vh, 140px) 0 clamp(72px, 10vh, 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    145deg,
    #1c1917 0%,
    #292524 35%,
    #431407 70%,
    #7c2d12 100%
  );
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 127, 80, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(221, 160, 221, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 90%, rgba(135, 206, 235, 0.2) 0%, transparent 45%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.orb-a {
  width: 40vw;
  max-width: 420px;
  height: 40vw;
  max-height: 420px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 160, 122, 0.9) 0%, transparent 70%);
}

.orb-b {
  width: 32vw;
  max-width: 360px;
  height: 32vw;
  max-height: 360px;
  bottom: 5%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.55) 0%, transparent 70%);
}

.orb-c {
  width: 24vw;
  max-width: 280px;
  height: 24vw;
  max-height: 280px;
  top: 45%;
  left: 35%;
  background: radial-gradient(circle, rgba(152, 251, 152, 0.25) 0%, transparent 70%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.85s ease-out 0.05s both;
}

.hero-title-line {
  display: inline-block;
  margin-top: 0.15em;
}

.hero-title-accent {
  background: linear-gradient(120deg, #ffd4b8 0%, #fff 45%, #ffb6c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.05em;
}

.hero-lead {
  font-size: clamp(15px, 1.9vw, 18px);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
  margin: 0 auto 36px;
  animation: fadeInUp 0.85s ease-out 0.15s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.85s ease-out 0.25s both;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ff8f5a 0%, var(--primary-color) 50%, #e85a2a 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(255, 127, 80, 0.45);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 127, 80, 0.55);
}

.btn-hero-primary svg {
  transition: transform 0.3s;
}

.btn-hero-primary:hover svg {
  transform: translateX(4px);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero-metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  padding: 0;
  margin: 0;
  animation: fadeInUp 0.85s ease-out 0.35s both;
}

.hero-metrics li {
  text-align: center;
  position: relative;
  padding: 0 clamp(12px, 2vw, 24px);
}

.hero-metrics li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.hero-metrics strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hero-metrics span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.hero-scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.4em;
  transition: color 0.3s;
}

.hero-scroll-hint:hover {
  color: rgba(255, 255, 255, 0.75);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 作品区域 — 通用 + 首页增强 */
.works-section {
  padding: 60px 0;
  background: var(--bg-color);
}

.page-home .works-section-premium {
  padding: clamp(72px, 10vw, 112px) 0 96px;
  background: transparent;
  position: relative;
}

.page-home .works-section-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--primary-dark);
  opacity: 0.85;
  margin-bottom: 12px;
}

.page-home .section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
}

.page-home .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto;
  margin-top: 0.6em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--macaron-pink));
}

.section-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* 非首页仍用原 section-title */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* 作品网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-home .works-grid-premium {
  gap: clamp(20px, 3vw, 32px);
}

.work-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.page-home .work-card-premium {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 8px 24px -4px rgba(0, 0, 0, 0.08);
  position: relative;
}

.page-home .work-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 127, 80, 0);
  transition: box-shadow 0.45s ease;
  pointer-events: none;
  z-index: 1;
}

.page-home .work-card-premium:hover::before {
  box-shadow:
    inset 0 0 0 1px rgba(255, 127, 80, 0.28),
    0 0 0 1px rgba(221, 160, 221, 0.15);
}

.page-home .work-card-premium:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px -12px rgba(255, 127, 80, 0.18),
    0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.work-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 比例 */
  background: linear-gradient(135deg, var(--macaron-blue) 0%, var(--macaron-purple) 100%);
  overflow: hidden;
}

.work-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-image-placeholder svg {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.7);
}

.page-home .work-card-premium .work-image {
  border-radius: 0;
}

.work-image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 48%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.12) 52%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.page-home .work-card-premium:hover .work-image-shine {
  opacity: 1;
}

.work-info {
  padding: 20px;
}

.work-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .work-card-premium .work-info {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.page-home .work-card-premium .work-info h3 {
  white-space: normal;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  transition: gap 0.3s ease, color 0.3s;
}

.page-home .work-card-premium:hover .work-cta {
  gap: 10px;
  color: var(--primary-color);
}

.work-cta svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.page-home .work-card-premium:hover .work-cta svg {
  transform: translateX(4px);
}

/* 作品详情页 */
.work-detail {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 30px;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 0.7;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.work-article {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.work-header {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
}

.work-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
}

.work-cover {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--macaron-green) 0%, var(--macaron-blue) 100%);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-content {
  padding: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.work-content h1, .work-content h2, .work-content h3 {
  margin: 24px 0 16px;
  color: var(--text-color);
}

.work-content h2 {
  font-size: 24px;
}

.work-content h3 {
  font-size: 20px;
}

.work-content p {
  margin: 16px 0;
}

.work-content ul, .work-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.work-content li {
  margin: 8px 0;
}

.work-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.work-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ===== 作品详情页 — 高端版（.page-work）===== */
.page-work .work-detail-premium {
  padding: 0 0 0;
  min-height: auto;
}

.page-work .work-top-bar {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: rgba(253, 252, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-work .work-top-inner {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.page-work .back-link-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  transition: color 0.25s, transform 0.25s;
}

.page-work .back-link-premium svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  transition: transform 0.25s;
}

.page-work .back-link-premium:hover {
  opacity: 1;
  color: var(--primary-color);
}

.page-work .back-link-premium:hover svg {
  transform: translateX(-3px);
}

/* Hero：有封面 */
.page-work .work-hero {
  position: relative;
  margin: 0;
}

.page-work .work-hero--cover {
  min-height: min(52vh, 520px);
  max-height: 640px;
}

.page-work .work-hero-media {
  position: relative;
  width: 100%;
  height: min(52vh, 520px);
  max-height: 640px;
  overflow: hidden;
  background: linear-gradient(145deg, #1c1917 0%, #431407 100%);
}

.page-work .work-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.page-work .work-hero--cover:hover .work-hero-media img {
  transform: scale(1.06);
}

.page-work .work-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0.15) 0%,
    rgba(12, 10, 9, 0.55) 45%,
    rgba(12, 10, 9, 0.88) 100%
  );
}

.page-work .work-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-work .work-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(28px, 5vw, 56px) 20px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.page-work .work-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.page-work .work-hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  max-width: 18em;
}

/* Hero：无封面 */
.page-work .work-hero--abstract {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(32px, 6vw, 56px);
  overflow: hidden;
  background: linear-gradient(145deg, #1c1917 0%, #292524 40%, #7c2d12 100%);
}

.page-work .work-hero-abstract-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255, 127, 80, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(221, 160, 221, 0.3) 0%, transparent 50%);
}

.page-work .work-hero-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  top: -80px;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 160, 122, 0.9) 0%, transparent 70%);
}

.page-work .work-hero--abstract .work-hero-copy {
  position: relative;
  padding-top: 100px;
  padding-bottom: 0;
}

.page-work .work-hero--abstract .work-hero-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.page-work .work-hero--abstract .work-hero-title {
  color: #fff;
}

/* 正文卡片 */
.page-work .work-article-premium {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-top: -32px;
  position: relative;
  z-index: 3;
}

.page-work .work-article-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.page-work .work-content-prose {
  padding: clamp(36px, 5vw, 48px) clamp(28px, 4vw, 40px);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #2d2a26;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 24px 48px -12px rgba(0, 0, 0, 0.1);
}

.page-work .work-content-prose > *:first-child {
  margin-top: 0;
}

.page-work .work-content-prose h1,
.page-work .work-content-prose h2,
.page-work .work-content-prose h3 {
  margin: 1.6em 0 0.65em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-work .work-content-prose h1:first-child,
.page-work .work-content-prose h2:first-child,
.page-work .work-content-prose h3:first-child {
  margin-top: 0;
}

.page-work .work-content-prose h2 {
  font-size: 1.5rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-work .work-content-prose h3 {
  font-size: 1.2rem;
}

.page-work .work-content-prose p {
  margin: 1em 0;
}

.page-work .work-content-prose ul,
.page-work .work-content-prose ol {
  margin: 1em 0;
  padding-left: 1.35em;
}

.page-work .work-content-prose li {
  margin: 0.45em 0;
  padding-left: 0.25em;
}

.page-work .work-content-prose li::marker {
  color: var(--primary-color);
}

.page-work .work-content-prose img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.page-work .work-content-prose a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 127, 80, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.page-work .work-content-prose a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* 底部 */
.footer {
  background: #fff;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: var(--text-light);
  margin: 5px 0;
}

.page-home .footer-premium,
.page-work .footer-premium {
  background: linear-gradient(180deg, #f5f2ed 0%, #ebe6df 100%);
  border-top: none;
  padding: 40px 0 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-home .footer-premium p,
.page-work .footer-premium p {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #6b6560;
}

.page-work .footer-premium.footer-work {
  margin-top: 0;
}

/* 悬浮客服图标 */
.customer-service {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cs-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 127, 80, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cs-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 127, 80, 0.5);
}

.cs-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

/* 聊天窗口 */
.chat-window {
  position: fixed;
  right: 30px;
  bottom: 110px;
  width: 350px;
  height: 450px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-window.active {
  display: flex;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
}

.chat-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.close-chat {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.close-chat svg {
  width: 20px;
  height: 20px;
  color: #fff;
  transition: opacity 0.3s;
}

.close-chat:hover svg {
  opacity: 0.7;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9f9f9;
}

.chat-welcome {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  padding: 20px 0;
}

.message {
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.message.user {
  text-align: right;
}

.message .msg-content {
  display: inline-block;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message.user .msg-content {
  background: var(--primary-color);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message.admin .msg-content {
  background: #fff;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.message .msg-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.chat-input-area {
  display: flex;
  padding: 15px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input-area input:focus {
  border-color: var(--primary-color);
}

.chat-input-area button {
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input-area button:hover {
  background: var(--primary-dark);
}

/* 错误页面 */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--macaron-pink) 0%, var(--macaron-blue) 100%);
}

.error-content {
  text-align: center;
  color: #fff;
}

.error-content h1 {
  font-size: 120px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-content p {
  font-size: 24px;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 991px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .page-home .hero-metrics li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .page-home .nav-links {
    gap: 12px;
  }

  .page-home .nav-cta {
    padding: 6px 12px;
    font-size: 12px;
  }

  .page-home .hero.hero-premium {
    min-height: auto;
    padding-top: 88px;
  }

  .page-home .hero-metrics {
    flex-direction: column;
    gap: 20px;
  }

  .page-home .hero-metrics li:not(:last-child)::after {
    display: none;
  }

  .page-home .hero-scroll-hint {
    display: none;
  }

  .page-home .section-head {
    margin-bottom: 40px;
  }

  .chat-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 100px;
  }

  .customer-service {
    right: 20px;
    bottom: 20px;
  }

  .cs-icon {
    width: 50px;
    height: 50px;
  }

  .cs-icon svg {
    width: 24px;
    height: 24px;
  }

  .work-header h1 {
    font-size: 22px;
  }

  .work-content {
    padding: 20px;
  }

  .page-work .work-hero--cover {
    min-height: 42vh;
  }

  .page-work .work-hero-media {
    height: 42vh;
    min-height: 260px;
  }

  .page-work .work-article-premium {
    margin-top: -20px;
  }

  .page-work .work-content-prose {
    padding: 24px 18px;
    font-size: 16px;
    border-radius: 16px;
  }

  .page-work .nav-links {
    gap: 10px;
  }

  .page-work .nav-cta {
    padding: 6px 12px;
    font-size: 12px;
  }
}
