/* 移动端强制重置 - 必须放在最前面 */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* 全局样式 */
:root {
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary-color: #ec4899;
  --secondary-light: #f472b6;
  --accent-color: #14b8a6;
  --accent-light: #2dd4bf;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #f1f5f9;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-colored: 0 10px 30px -5px rgba(99, 102, 241, 0.3);
}

/* 暗夜模式 */
body.dark-mode {
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e293b;
  --bg-white: rgba(30, 41, 59, 0.8);
  --border-color: #334155;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-colored: 0 10px 30px -5px rgba(99, 102, 241, 0.5);
}

/* 暗夜模式下的 html 背景 */
html:has(body.dark-mode) {
  background: #0f172a;
}

body.dark-mode::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

body.dark-mode::after {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* 确保 html 元素也有背景色 */
html {
  background: var(--bg-gradient-start);
  min-height: 100%;
}

/* 背景装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

/* 暗夜模式下的导航栏 */
body.dark-mode .navbar {
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

body.dark-mode .navbar.scrolled {
  background: rgba(30, 41, 59, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.dark-mode-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dark-mode-toggle:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

body.dark-mode .dark-mode-toggle {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: var(--secondary-light);
}

body.dark-mode .dark-mode-toggle:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 主容器 */
.main-container {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* 左侧区域 */
.left-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-colored);
  border-color: rgba(99, 102, 241, 0.3);
}

.card:hover::before {
  opacity: 1;
}

/* 暗夜模式下的卡片 */
body.dark-mode .card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .card:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

/* 关于我板块 */
.about-section {
  text-align: center;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
  box-shadow: var(--shadow-colored);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.4);
}

.about-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.about-section .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.about-section .motto {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.location:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.location i {
  color: var(--primary-color);
}

/* 技术栈板块 */
.tech-stack h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.tech-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-category:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  transform: translateX(5px);
}

.tech-category-title {
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-category-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid transparent;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
}

.tech-item:hover {
  border-left-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

/* 暗夜模式下的技术栈项 */
body.dark-mode .tech-item {
  background: rgba(51, 65, 85, 0.3);
}

body.dark-mode .tech-item:hover {
  background: rgba(51, 65, 85, 0.6);
}

.tech-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-rating {
  display: flex;
  gap: 0.3rem;
}

.skill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s ease;
}

.skill-dot.filled {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 工作方式板块 */
.work-style h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.work-style-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-style-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 1.5rem;
  position: relative;
}

.work-style-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* 右侧区域 */
.right-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 文章板块 */
.article-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.article-section:hover {
  box-shadow: var(--shadow-colored);
  border-color: rgba(99, 102, 241, 0.3);
}

/* 暗夜模式下的文章板块 */
body.dark-mode .article-section {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .article-section:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.article-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.article-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
}

.article-content p {
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}

.article-content p:hover {
  color: var(--text-primary);
}

/* 阅读列表板块 */
.reading-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reading-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
}

.reading-section:hover {
  box-shadow: var(--shadow-colored);
  border-color: rgba(99, 102, 241, 0.3);
}

/* 暗夜模式下的阅读列表 */
body.dark-mode .reading-section {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .reading-section:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.reading-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.reading-scroll-container {
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.reading-scroll-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

/* 暗夜模式下的阅读列表渐变 */
body.dark-mode .reading-scroll-container::after {
  background: linear-gradient(to top, rgba(30, 41, 59, 0.8), transparent);
}

.reading-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: scroll-up 30s linear infinite;
}

.reading-list:hover {
  animation-play-state: paused;
}

.reading-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.reading-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.reading-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.reading-item:hover .reading-image {
  transform: scale(1.1) rotate(3deg);
}

.reading-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.reading-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.reading-type {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.reading-type i {
  color: var(--accent-color);
  font-size: 0.75rem;
}

.reading-description {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* 工具集板块 */
.toolset-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.toolset-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
}

.toolset-section:hover {
  box-shadow: var(--shadow-colored);
  border-color: rgba(236, 72, 153, 0.3);
}

.toolset-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.toolset-scroll-container {
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.toolset-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.toolset-scroll-container::-webkit-scrollbar-track {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
}

.toolset-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.toolset-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
}

.toolset-list {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 0;
  animation: scroll-horizontal 25s linear infinite;
}

.toolset-list:hover {
  animation-play-state: paused;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.toolset-category {
  flex-shrink: 0;
  min-width: 320px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.toolset-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.category-header i {
  font-size: 1.3rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.category-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 1);
}

.tool-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 12px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.tool-card:hover .tool-icon {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* 暗夜模式下的工具集 */
body.dark-mode .toolset-section {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .toolset-section:hover {
  border-color: rgba(236, 72, 153, 0.5);
}

body.dark-mode .toolset-category {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .toolset-category:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.4);
}

body.dark-mode .tool-card {
  background: rgba(51, 65, 85, 0.5);
  border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .tool-card:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--primary-color);
}

/* 联系方式卡片 */
.contact-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
}

.contact-card:hover {
  box-shadow: var(--shadow-colored);
  border-color: rgba(236, 72, 153, 0.3);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.contact-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.contact-method:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  transform: translateX(5px);
  border-color: rgba(236, 72, 153, 0.2);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: 0 4px 8px rgba(236, 72, 153, 0.3);
  transition: transform 0.3s ease;
}

.contact-method:hover .contact-icon {
  transform: rotate(-10deg) scale(1.1);
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  color: var(--primary-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  border: 1px solid transparent;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* 统计数据卡片 */
.stats-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
}

.stats-card:hover {
  box-shadow: var(--shadow-colored);
  border-color: rgba(20, 184, 166, 0.3);
}

.stats-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #e2e8f0;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-links i {
  margin-right: 0.5rem;
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.footer-bottom i {
  color: var(--secondary-color);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-width: 100%;
    overflow-x: hidden;
  }

  .main-container {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    max-width: 100vw;
  }

  .nav-menu {
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-image {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  /* 全局盒模型修复 */
  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* 导航栏优化 */
  .nav-container {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav-menu {
    flex-direction: row;
    gap: 0.75rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .dark-mode-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* 主容器优化 */
  .main-container {
    padding: 0.75rem;
    margin-top: 100px;
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
  }

  /* 卡片优化 */
  .card {
    padding: 1.25rem;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
  }

  /* 关于我板块 */
  .avatar {
    width: 120px;
    height: 120px;
  }

  .about-section h2 {
    font-size: 1.3rem;
  }

  .about-section .subtitle {
    font-size: 0.85rem;
  }

  .about-section .motto {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  /* 技术栈优化 */
  .tech-stack h3 {
    font-size: 1.1rem;
  }

  .tech-category {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .tech-category-title {
    font-size: 0.95rem;
  }

  .tech-item {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  .tech-name {
    font-size: 0.85rem;
  }

  .skill-dot {
    width: 8px;
    height: 8px;
  }

  /* 工作方式优化 */
  .work-style h3 {
    font-size: 1.1rem;
  }

  .work-style-list li {
    font-size: 0.9rem;
  }

  /* 文章板块优化 */
  .article-section {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .article-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .article-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .article-content p {
    margin-bottom: 1rem;
  }

  /* 阅读列表优化 */
  .reading-section {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .reading-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .reading-scroll-container {
    height: 350px;
  }

  .reading-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .reading-image {
    width: 50px;
    height: 50px;
  }

  .reading-title {
    font-size: 0.9rem;
  }

  .reading-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .reading-description {
    font-size: 0.75rem;
  }

  /* 工具集优化 */
  .toolset-section {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .toolset-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .toolset-category {
    min-width: 280px;
    padding: 1.25rem;
  }

  .category-header h4 {
    font-size: 1rem;
  }

  .category-header i {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .tool-card {
    padding: 0.75rem;
  }

  .tool-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .tool-name {
    font-size: 0.8rem;
  }

  /* 联系卡片优化 */
  .contact-card,
  .stats-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .contact-card h3,
  .stats-card h3 {
    font-size: 1.1rem;
  }

  .contact-method {
    padding: 0.75rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* 统计数据优化 */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* 页脚优化 */
  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-links li {
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* 作品集页面优化 */
  .portfolio-container {
    padding: 1rem;
    margin-top: 80px;
  }

  .portfolio-header {
    margin-bottom: 2rem;
  }

  .portfolio-header h1 {
    font-size: 1.8rem;
  }

  .portfolio-header p {
    font-size: 1rem;
  }

  .portfolio-list {
    gap: 2rem;
  }

  .project-item {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .project-image {
    height: 200px;
  }

  .project-preview {
    transform: scale(0.6);
  }

  .project-overlay i {
    font-size: 2rem;
  }

  .project-overlay span {
    font-size: 0.95rem;
  }

  .project-tag {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }

  .project-title {
    font-size: 1.4rem;
  }

  .project-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .project-tech .tech-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .project-link {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 480px) {
  /* 导航栏 */
  .nav-container {
    padding: 0.75rem;
  }

  .nav-menu {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  /* 主容器 */
  .main-container {
    padding: 0.75rem;
    margin-top: 90px;
  }

  /* 卡片 */
  .card {
    padding: 1.25rem;
  }

  /* 头像 */
  .avatar {
    width: 100px;
    height: 100px;
  }

  /* 标题字体 */
  .about-section h2 {
    font-size: 1.2rem;
  }

  .tech-stack h3,
  .work-style h3,
  .reading-section h3,
  .toolset-section h3 {
    font-size: 1rem;
  }

  .article-section h2 {
    font-size: 1.3rem;
  }

  /* 技术栈 */
  .tech-category {
    padding: 0.6rem;
  }

  .tech-item {
    padding: 0.4rem 0.5rem;
  }

  .skill-dot {
    width: 7px;
    height: 7px;
    gap: 0.2rem;
  }

  /* 阅读列表 */
  .reading-scroll-container {
    height: 300px;
  }

  .reading-item {
    padding: 0.6rem;
  }

  .reading-image {
    width: 45px;
    height: 45px;
  }

  /* 工具集 */
  .toolset-category {
    min-width: 260px;
    padding: 1rem;
  }

  .tools-grid {
    gap: 0.6rem;
  }

  .tool-card {
    padding: 0.6rem;
  }

  .tool-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .tool-name {
    font-size: 0.75rem;
  }

  /* 文章内容 */
  .article-content {
    font-size: 0.9rem;
  }

  /* 作品集 */
  .portfolio-header h1 {
    font-size: 1.6rem;
  }

  .portfolio-header p {
    font-size: 0.95rem;
  }

  .project-item {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  /* 页脚 */
  .footer {
    padding: 1.5rem 0.75rem 1rem;
  }

  .footer-section h4 {
    font-size: 0.95rem;
  }

  .footer-section p,
  .footer-links li {
    font-size: 0.85rem;
  }
}

/* 作品集页面样式 */
.portfolio-container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 700;
}

.portfolio-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-item {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-colored);
  border-color: rgba(99, 102, 241, 0.3);
}

.project-item:hover::before {
  opacity: 1;
}

/* 暗夜模式下的作品集项 */
body.dark-mode .project-item {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .project-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.project-image {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  position: relative;
  height: 300px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.project-image:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.project-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 375px;
  border: none;
  transform: scale(0.8);
  transform-origin: top left;
  pointer-events: none;
  background: white;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  color: white;
}

.project-image:hover .project-overlay {
  opacity: 1;
}

.project-overlay i {
  font-size: 2.5rem;
  animation: float 2s ease-in-out infinite;
}

.project-overlay span {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 暗夜模式下的项目预览 */
body.dark-mode .project-preview {
  background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .project-image {
  border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .project-image:hover {
  border-color: rgba(99, 102, 241, 0.6);
}

.project-placeholder {
  font-size: 6rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-title {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tech-item {
  padding: 0.4rem 0.8rem;
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-color);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.project-link:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(5px);
}

@media (max-width: 1024px) {
  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-image {
    min-height: 250px;
  }
}

/* 占位页面样式 */
.placeholder-container {
  max-width: 800px;
  margin: 150px auto;
  padding: 2rem;
  text-align: center;
}

.placeholder-container h1 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.placeholder-container p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.back-home {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-home:hover {
  background: var(--secondary-color);
}
