/*
 * 主样式文件，覆盖全站基础排版、颜色、组件风格。
 * 使用 CSS 变量集中管理配色和间距，方便后续维护与自定义主题。
 */

:root {
  --color-primary: #2f54eb;
  --color-primary-dark: #1d39c4;
  --color-secondary: #fa8c16;
  --color-bg: #0f172a;
  --color-bg-alt: #111c3a;
  --color-surface: #162447;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: rgba(255, 255, 255, 0.87);
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-text-soft: rgba(255, 255, 255, 0.4);
  --color-glass: rgba(15, 23, 42, 0.75);
  --gradient-hero: linear-gradient(135deg, rgba(47, 84, 235, 0.85), rgba(250, 140, 22, 0.65));
  --gradient-card: linear-gradient(160deg, rgba(47, 84, 235, 0.16), rgba(250, 140, 22, 0.08));
  --gradient-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.95));
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.45);
  --shadow-popover: 0 24px 60px rgba(15, 23, 42, 0.55);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --max-width: 1220px;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --transition-base: all 0.3s ease;
  --blur-glass: blur(16px);
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  letter-spacing: 0.02em;
  position: relative;
  overflow-x: hidden;
}

/* 全局背景纹理和装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    /* 网格纹理 */
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    /* 细微纹理 */
    linear-gradient(45deg, transparent 49.9%, rgba(255, 255, 255, 0.01) 49.9%, rgba(255, 255, 255, 0.01) 50.1%, transparent 50.1%),
    linear-gradient(135deg, transparent 49.9%, rgba(255, 255, 255, 0.01) 49.9%, rgba(255, 255, 255, 0.01) 50.1%, transparent 50.1%);
  background-size: 40px 40px, 20px 20px, 20px 20px;
  background-attachment: fixed;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* 背景模糊光晕效果 */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 84, 235, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(60px);
  z-index: -2;
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.glass-panel {
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--blur-glass);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: clamp(32px, 6vw, 60px);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 520px;
  font-size: clamp(16px, 2.4vw, 18px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition-base);
  box-shadow: 0 12px 24px rgba(47, 84, 235, 0.35);
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-base);
}

.chip:hover,
.chip.active {
  color: #fff;
  border-color: rgba(250, 140, 22, 0.4);
  background: rgba(250, 140, 22, 0.22);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition-base);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 6px;
}

.card-desc {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 90%;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-soft);
  font-size: 13px;
  margin-top: 16px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(10, 15, 32, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-secondary);
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  display: inline-block;
}

@media (max-width: 768px) {
  .logo {
    font-size: 18px;
  }
  
  .logo-icon {
    width: 30px;
    height: 30px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--color-text-muted);
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.hero {
  padding: clamp(120px, 18vw, 200px) 0 clamp(80px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(47, 84, 235, 0.35), transparent 55%),
    radial-gradient(circle at bottom left, rgba(250, 140, 22, 0.28), transparent 50%);
  pointer-events: none;
}

/* Hero Decorative Elements */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dec-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(47, 84, 235, 0.15), transparent 70%);
}

.dec-circle.dec-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: float 15s ease-in-out infinite;
}

.dec-circle.dec-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  background: linear-gradient(45deg, rgba(250, 140, 22, 0.15), transparent 70%);
  animation: float 12s ease-in-out infinite reverse;
}

.dec-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

.hero-content {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 72px);
  margin: 0 0 16px;
  line-height: 1.05;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(47, 84, 235, 0.2);
  color: var(--color-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-text .profession {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--color-text-muted);
}

.hero-text p {
  color: var(--color-text-muted);
  font-size: 18px;
  margin: 24px 0 32px;
  max-width: 85%;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-base);
  text-decoration: none;
  min-width: 140px;
  text-align: center;
}

.btn:not(.btn-outline) {
  background: var(--color-secondary);
  color: #fff;
}

.btn:not(.btn-outline):hover {
  background: #3b6fe2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 84, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-links a {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-popover);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform 0.35s ease;
}

.portrait-frame:hover {
  transform: perspective(1000px) rotateY(0);
}

.portrait-frame img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.frame-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), rgba(250, 140, 22, 0.8));
}

.portrait-stats {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  background: rgba(17, 28, 58, 0.65);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  text-align: center;
  min-width: 80px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.stats-bar {
  display: flex;
  gap: clamp(16px, 5vw, 36px);
  margin-top: clamp(24px, 5vw, 40px);
  flex-wrap: wrap;
}

.stat {
  min-width: 160px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 28, 58, 0.6);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: 28px;
  font-family: var(--font-heading);
}

.stat span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.category-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.category-nav a {
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  transition: var(--transition-base);
}

.category-nav a:hover,
.category-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin-top: 32px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(17, 28, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-popover);
  border-color: rgba(255, 255, 255, 0.15);
}

.work-card-image {
  position: relative;
  overflow: hidden;
  padding-top: 65%; /* 16:10 aspect ratio */
  background: rgba(15, 23, 42, 0.4);
}

.work-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(47, 84, 235, 0.8);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
}

.work-card-content {
  padding: 20px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-card-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.work-card-content p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-soft);
  margin-top: 8px;
}

.work-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.work-card-tag {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  color: var(--color-text-soft);
}

.work-card-link {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 84, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
}

.work-card:hover .work-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* 侧边栏联系方式样式 */
.contact-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100vh;
  background: rgba(13, 19, 42, 0.95);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1500;
  transition: right 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.contact-sidebar.open {
  right: 0;
}

/* 关闭动画 */
.contact-sidebar.closing {
  transform: translateX(20px);
  opacity: 0.95;
}

/* 背景遮罩淡出动画 */
.sidebar-overlay {
  transition: opacity 0.2s ease;
}

/* 设备类型特定样式 */
.device-mobile .contact-item {
  padding: 14px;
  margin-bottom: 20px;
}

.device-mobile .contact-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
}

.device-tablet .contact-sidebar {
  width: 320px;
}

/* 触摸设备特定优化 */
@media (hover: none) and (pointer: coarse) {
  .sidebar-toggle {
    padding: 16px 20px;
    /* 触摸设备增大点击区域 */
  }
  
  .contact-item {
    transition: transform 0.1s, background 0.2s;
    /* 触摸设备优化过渡效果 */
  }
  
  .contact-item:active {
    transform: scale(0.98);
    /* 触摸反馈 */
  }
  
  /* 为触摸设备添加滑动提示 */
  .contact-sidebar::after {
    content: '← 向右滑动关闭';
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    animation: fadeInOut 3s ease-in-out infinite;
    opacity: 0;
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
  }
}

/* 非触摸设备优化 */
@media (hover: hover) and (pointer: fine) {
  .contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 鼠标悬停时的提升效果 */
  }
  
  .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    /* 关闭按钮悬停效果 */
  }
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
  padding: 32px 24px;
  flex: 1;
  overflow-y: auto;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.2s, background 0.2s;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-info h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.contact-info p,
.contact-info a {
  margin: 0;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.wechat-qr {
  margin-top: 12px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  display: inline-block;
}

.wechat-qr img {
  width: 120px;
  height: 120px;
  display: block;
}

/* 侧边栏切换按钮 */
.sidebar-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(47, 84, 235, 0.4);
  z-index: 1400;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 84, 235, 0.6);
}

.sidebar-toggle.active {
  background: var(--color-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.toggle-icon {
  font-size: 20px;
}

/* 背景遮罩 */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1300;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 响应式布局 */
@media (max-width: 768px) {
  .contact-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .sidebar-toggle {
    bottom: 24px;
    right: 24px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .toggle-text {
    display: none;
  }
  
  .wechat-qr img {
    width: 100px;
    height: 100px;
  }
}

/* Enhanced section styling */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 3px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 600px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-bar label:hover {
  background: rgba(255, 255, 255, 0.12);
}

.filter-bar input[type='checkbox'] {
  accent-color: var(--color-secondary);
}

.tab-nav {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  padding: 6px;
  gap: 6px;
}

.tab-nav button {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-base);
}

.tab-nav button.active {
  background: rgba(47, 84, 235, 0.25);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.media-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 24, 0.85);
  padding: 30px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.media-modal.open {
  opacity: 1;
  visibility: visible;
}

.media-modal .modal-inner {
  width: min(100%, 960px);
  max-height: 90vh;
  background: rgba(13, 19, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-popover);
  overflow: hidden;
  position: relative;
}

.media-modal .modal-media {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.media-modal iframe,
.media-modal img,
.media-modal canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition-base);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.media-modal .modal-content {
  padding: 24px 28px 32px;
  max-height: 40vh;
  overflow-y: auto;
}

.media-modal .modal-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.media-modal .modal-content p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
}

.modal-meta {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-soft);
}

.modal-meta span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-hero {
  padding: clamp(120px, 18vw, 160px) 0 clamp(80px, 12vw, 120px);
  background: linear-gradient(140deg, rgba(47, 84, 235, 0.25), rgba(17, 28, 58, 0.85));
}

.detail-hero .title {
  font-size: clamp(42px, 7vw, 68px);
  margin: 0 0 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-soft);
  font-size: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 15px;
  margin-top: 24px;
}

.detail-layout {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  align-items: start;
}

.detail-main .prose {
  background: rgba(17, 28, 58, 0.6);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prose h3 {
  font-size: 24px;
  margin: 32px 0 12px;
}

.prose p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 18px;
}

.prose li {
  margin-bottom: 8px;
}

.detail-sidebar {
  display: grid;
  gap: 24px;
}

.info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(18, 30, 58, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h4 {
  margin: 0 0 16px;
  font-size: 18px;
}

.info-list {
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.timeline {
  position: relative;
  padding-left: 22px;
  display: grid;
  gap: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(47, 84, 235, 0.35);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.timeline-item h5 {
  margin: 0 0 6px;
  font-size: 16px;
}

.timeline-item span {
  color: var(--color-text-soft);
  font-size: 14px;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

.recommended-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.about-section {
  display: grid;
  gap: clamp(24px, 5vw, 40px);
}

.timeline-horizontal {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.timeline-horizontal::-webkit-scrollbar {
  height: 6px;
}

.timeline-horizontal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.timeline-card {
  min-width: 240px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(17, 28, 58, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(17, 28, 58, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-card .icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(47, 84, 235, 0.2);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--color-secondary);
}

.contact-card h4 {
  margin: 0 0 8px;
}

.contact-card a {
  color: var(--color-secondary);
}

.contact-card a:hover {
  text-decoration: underline;
}

.map-wrapper iframe {
  width: 100%;
  min-height: 360px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: rgba(17, 28, 58, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form-group small {
  color: var(--color-text-soft);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 21, 42, 0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(47, 84, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 84, 235, 0.2);
}

.form-group .error {
  color: #ff6f61;
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(47, 84, 235, 0.95);
  color: #fff;
  box-shadow: var(--shadow-popover);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer.site-footer {
  padding: 32px 0;
  background: rgba(8, 12, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--color-text-soft);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--color-text-muted);
}

.footer-nav a:hover {
  color: #fff;
}

.floating-share {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
  z-index: 1500;
}

.floating-share button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: var(--transition-base);
}

.floating-share button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  right: 24px;
  background: rgba(10, 15, 32, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-popover);
  width: 250px;
  display: none;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  padding: 16px;
}

.mobile-nav li + li {
  margin-top: 10px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  color: var(--color-text-muted);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vr-preview,
.model-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.preview-overlay button {
  margin-top: 8px;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-list tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-list th,
.table-list td {
  text-align: left;
  padding: 10px 0;
  color: var(--color-text-muted);
}

.table-list th {
  width: 160px;
  color: rgba(255, 255, 255, 0.85);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(47, 84, 235, 0.2);
  color: var(--color-secondary);
  font-size: 13px;
  text-transform: uppercase;
}

.empty-state {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  text-align: center;
  color: var(--color-text-muted);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 响应式布局优化 */

/* 大屏幕优化 */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  /* Hero区域优化 */
  .hero-content {
    gap: 32px;
  }
  
  .hero-text {
    max-width: 500px;
  }
  
  /* 作品展示区优化 */
  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }
}

/* 平板设备优化 */
@media (max-width: 1024px) {
  .header-inner {
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-portrait {
    margin-bottom: 24px;
  }
  
  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* 小型平板/手机横屏优化 */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .stats-bar {
    gap: 18px;
    justify-content: center;
  }

  .floating-share {
    display: none;
  }

  .media-modal {
    padding: 16px;
  }

  .media-modal .modal-inner {
    width: 100%;
  }

  .contact-card {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  /* Hero区域文本调整 */
  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin: 20px auto 32px;
    max-width: 90%;
  }
  
  /* CTA按钮调整 */
  .hero-cta {
    justify-content: center;
    gap: 12px;
  }
  
  /* 作品网格调整 */
  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  /* 背景装饰调整 */
  body::after {
    width: 500px;
    height: 500px;
    filter: blur(40px);
  }
}

/* 手机竖屏优化 */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
    margin: 16px auto 24px;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }

  .work-card img {
    height: 200px;
  }

  .card-overlay {
    padding: 18px;
  }

  .timeline-horizontal {
    gap: 18px;
  }
  
  /* 作品网格单列布局 */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* 背景装饰优化 */
  body::after {
    width: 400px;
    height: 400px;
    filter: blur(30px);
  }
  
  /* 网格纹理优化 */
  body::before {
    background-size: 20px 20px, 10px 10px, 10px 10px;
    opacity: 0.4;
  }
}

/* 超小屏幕优化 */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
}

/* 动画与状态辅助类 */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 辅助视觉元素 */

/* 装饰性分割线 */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: var(--spacing-xl) 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

.divider-light {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.divider-light::before {
  width: 30px;
  height: 2px;
  opacity: 0.8;
}

/* 装饰性边框 */
.decorative-border {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.decorative-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  opacity: 0.6;
}

.decorative-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 84, 235, 0.4), transparent);
  opacity: 0.4;
}

/* 装饰性角标 */
.decorative-corner {
  position: relative;
}

.decorative-corner::before,
.decorative-corner::after,
.decorative-corner span::before,
.decorative-corner span::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-secondary);
  border-style: solid;
  opacity: 0.5;
}

.decorative-corner::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.decorative-corner::after {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.decorative-corner span::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.decorative-corner span::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.decorative-corner span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 卡片装饰效果 */
.card-decorated {
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-decorated::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 84, 235, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.card-decorated:hover::after {
  opacity: 1;
}

/* 装饰性图标容器 */
.icon-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-container::before {
  content: '';
  position: absolute;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.1;
  transition: opacity var(--transition-base);
}

.icon-container:hover::before {
  opacity: 0.2;
}

/* 标题装饰元素 */
.title-decoration {
  position: relative;
  display: inline-block;
}

.title-decoration::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

/* 渐变文字效果 */
.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* 辉光效果 */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 0 20px rgba(47, 84, 235, 0.3);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* 辅助类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

.hidden {
  display: none !important;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }

/* 滚动条美化 */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(105, 119, 159, 0.6);
  border-radius: var(--radius-full);
}



