:root {
  --color-bg-deep: #0a0a12;
  --color-bg: #10101a;
  --color-surface: rgba(15, 20, 40, 0.85);
  --color-border: rgba(126, 184, 255, 0.25);
  --color-text: #ffffff;
  --color-text-muted: #b8c0d8;
  --color-accent: #7eb8ff;
  --color-accent-secondary: #c4a0ff;
  --color-accent-glow: rgba(126, 184, 255, 0.4);
  --color-glass: rgba(255, 255, 255, 0.08);
  --font-serif: "Noto Serif SC", "Cormorant Garamond", Georgia, serif;
  --font-western: "Cormorant Garamond", Georgia, serif;
}

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

/* 自定义滚动条 - 悬浮在背景上，hover显示 */
.container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.container::-webkit-scrollbar-track {
  background: transparent;
}

.container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* 鼠标移入页面时显示滚动条 */
.container:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(126, 184, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.2);
}

/* 鼠标悬停在滚动条上时 */
.container:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(126, 184, 255, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 滚动条按下时 */
.container:hover::-webkit-scrollbar-thumb:active {
  background: rgba(255, 255, 255, 0.7);
}

.container::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox 滚动条 */
.container {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}

.container:hover {
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg-deep);
  color: var(--color-text);
  min-height: 100vh;
  overflow: hidden; /* 禁用body滚动 */
  line-height: 1.8;
  position: relative;
}

/* 背景图片 */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* 背景遮罩层 - 几乎无遮罩让背景更明亮 */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 10, 18, 0) 0%,
    rgba(10, 10, 18, 0.05) 60%,
    rgba(10, 10, 18, 0.15) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* 背景装饰 - 玻璃球效果 */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 25s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(126, 184, 255, 0.2) 0%,
    transparent 70%
  );
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(196, 160, 255, 0.15) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
  animation-delay: -8s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(100, 200, 255, 0.12) 0%,
    transparent 70%
  );
  top: 40%;
  left: 25%;
  animation-delay: -16s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.03);
  }
  50% {
    transform: translate(-15px, 15px) scale(0.97);
  }
  75% {
    transform: translate(15px, 8px) scale(1.01);
  }
}

/* 网格背景 - 更细腻 */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(126, 184, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(126, 184, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* 主容器 - 添加滚动 */
.container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 2rem;
}

/* 容器内部包装 */
.container > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 头部 */
header {
  padding: 4rem 0 3rem;
  text-align: center;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  margin-bottom: 1rem;
}

.logo-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(126, 184, 255, 0.3) 20%,
    rgba(196, 160, 255, 0.15) 50%,
    transparent 70%
  );
  border: 1px solid rgba(126, 184, 255, 0.3);
  box-shadow: 0 0 60px rgba(126, 184, 255, 0.3),
    0 0 120px rgba(196, 160, 255, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.1);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 60px rgba(126, 184, 255, 0.3),
      0 0 120px rgba(196, 160, 255, 0.15),
      inset 0 0 30px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 80px rgba(126, 184, 255, 0.4),
      0 0 150px rgba(196, 160, 255, 0.2),
      inset 0 0 40px rgba(255, 255, 255, 0.15);
  }
}

.site-title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(200, 220, 255, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(126, 184, 255, 0.3);
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
}

.site-subtitle {
  font-family: var(--font-western);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2em;
  text-shadow: 0 1px 10px rgba(126, 184, 255, 0.4),
    0 0 20px rgba(255, 255, 255, 0.2);
}

/* 引言 */
.quote {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  animation: fadeIn 1.2s ease-out 0.3s both;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: 16px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quote::before,
.quote::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    var(--color-accent-secondary),
    transparent
  );
  left: 50%;
  transform: translateX(-50%);
}

.quote::before {
  top: 0;
}
.quote::after {
  bottom: 0;
}

.quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 2;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* 项目区域 */
.projects-section {
  padding: 4rem 0;
  background: transparent;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(220, 235, 255, 0.85) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 1px 6px rgba(255, 255, 255, 0.2));
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-secondary)
  );
  border-radius: 1px;
}

/* 项目卡片 */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  background: transparent;
}

.project-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease-out 0.5s both;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-8px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(126, 184, 255, 0.12) 50%,
    rgba(196, 160, 255, 0.08) 100%
  );
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 255, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15);
}

.project-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  position: relative;
}

.project-icon::before {
  content: "✦";
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(126, 184, 255, 0.5);
}

.project-name {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(126, 184, 255, 0.3);
}

.project-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(126, 184, 255, 0.4);
}

.project-link::after {
  content: "→";
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.project-card:hover .project-link::after {
  transform: translateX(5px);
}

/* 更多项目占位 */
.coming-soon {
  width: 100%;
  max-width: 400px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.coming-soon-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.6);
}

/* 页脚 */
footer {
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 4rem;
  animation: fadeIn 1s ease-out 0.7s both;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(126, 184, 255, 0.2);
}

.footer-text a {
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-text a:hover {
  opacity: 0.7;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
    letter-spacing: 0.2em;
  }

  .site-subtitle {
    font-size: 1rem;
  }

  .quote {
    padding: 1.5rem;
    margin: 3rem auto;
  }

  .quote p {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .coming-soon {
    max-width: 100%;
  }
}

/* 玻璃球装饰元素 */
.glass-bead {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glass-bead-1 {
  width: 6px;
  height: 6px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(126, 184, 255, 0.4)
  );
  top: 20%;
  right: 15%;
  animation: twinkle 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(126, 184, 255, 0.5);
}

.glass-bead-2 {
  width: 4px;
  height: 4px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.7),
    rgba(196, 160, 255, 0.4)
  );
  top: 60%;
  left: 10%;
  animation: twinkle 4s ease-in-out infinite 1s;
  box-shadow: 0 0 8px rgba(196, 160, 255, 0.5);
}

.glass-bead-3 {
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.6),
    rgba(100, 200, 255, 0.4)
  );
  bottom: 30%;
  right: 20%;
  animation: twinkle 5s ease-in-out infinite 2s;
  box-shadow: 0 0 12px rgba(100, 200, 255, 0.5);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
