/* 
 * Zeprium - Main Stylesheet
 * A structured and optimized CSS with focus on maintainability and performance
 */

/* ====================================
   1. CSS VARIABLES & THEMING
==================================== */
:root {
  /* Base Typography */
  --font-main: 'Optima', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-nav: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-footer: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Light Mode Colors */
  --color-bg: #ffffff;
  --color-bg-p3: color(display-p3 1 1 1);
  --color-text: #333333;
  --color-text-p3: color(display-p3 0.2 0.2 0.2);
  --color-accent: #000000;
  --color-accent-p3: color(display-p3 0 0 0);
  --color-muted: #666666;
  --color-muted-p3: color(display-p3 0.4 0.4 0.4);
  --color-link: #000000;
  --color-link-p3: color(display-p3 0 0 0);
  --color-focus: #4a90e2;
  --color-focus-p3: color(display-p3 0.29 0.565 0.886);
  
  /* HDR & Wide Color Gamut support */
  --color-accent-hdr: color(bt2020 0 0 0);
  --color-text-hdr: color(bt2020 0.2 0.2 0.2);
  --color-white-hdr: color(bt2020 1 1 1);
  
  /* Layout */
  --container-width: 100%;
  --header-height: 60px;
  --letter-spacing: 0.1em;
  --border-radius-small: 0.5rem;
  --border-radius-medium: 1rem;
  --border-radius-large: 1.5rem;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  
  /* Translucent backgrounds */
  --color-bg-translucent: rgba(255, 255, 255, 0.8);
  --color-bg-translucent-p3: color(display-p3 1 1 1 / 0.8);
  
  /* Navigation */
  --nav-item-spacing: 3rem;
  --nav-left-padding: 1rem;
  
  /* 导航颜色变量 */
  --text-color: #333;
  --hover-bg: rgba(0,0,0,0.1);
  --hover-color: #000;
  --active-bg: rgba(0,0,0,0.2);
  --active-color: #000;
  
  /* 暗色模式导航变量 */
  --dark-text-color: #fff;
  --dark-hover-bg: rgba(255,255,255,0.1);
  --dark-hover-color: #fff;
  --dark-active-bg: rgba(255,255,255,0.2);
  --dark-active-color: #fff;
  
  /* 亮色模式导航变量 */
  --light-text-color: #333;
  --light-hover-bg: rgba(0,0,0,0.1);
  --light-hover-color: #000;
  --light-active-bg: rgba(0,0,0,0.2);
  --light-active-color: #000;
}

/* Dark Mode Colors */
@media (prefers-color-scheme: dark) {
:root {
    --color-bg: #121212;
    --color-bg-p3: color(display-p3 0.071 0.071 0.071);
    --color-text: #f1f1f1;
    --color-text-p3: color(display-p3 0.945 0.945 0.945);
    --color-accent: #d0d0d0;
    --color-accent-p3: color(display-p3 0.816 0.816 0.816);
    --color-muted: #a0a0a0;
    --color-muted-p3: color(display-p3 0.627 0.627 0.627);
    --color-link: #d0d0d0;
    --color-link-p3: color(display-p3 0.816 0.816 0.816);
    --color-focus: #6aA8e8;
    --color-focus-p3: color(display-p3 0.416 0.659 0.91);
    
    /* Translucent backgrounds */
    --color-bg-translucent: rgba(18, 18, 18, 0.85);
    --color-bg-translucent-p3: color(display-p3 0.071 0.071 0.071 / 0.85);
  }
}

/* ====================================
   2. CSS RESET & BASE STYLES
==================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--color-bg);
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  /* 允许 Safari 下拉刷新 */
  overscroll-behavior: auto;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin-top: 0.5rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-context-menu: none;
  -moz-context-menu: none;
  -ms-context-menu: none;
  context-menu: none;
}

/* Accessibility focus states */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  z-index: -1;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.skip-to-content:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
  opacity: 1;
  z-index: 10000;
}

/* ====================================
   3. TYPOGRAPHY
==================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.8;
}

/* ====================================
   4. HEADER & NAVIGATION
==================================== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  width: 100%;
  background-color: var(--color-bg);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* Logo styling */
.logo-picture {
  display: inline-block;
  height: auto;
}

.site-logo {
  max-width: 5.5rem;
  height: auto;
  will-change: filter;
  transition: filter 0.3s ease;
}

/* Enhanced logo for HDR displays */
@supports (color: color(display-p3 1 1 1)) {
  @media (dynamic-range: high) or (color-gamut: p3) {
    .site-logo {
      filter: saturate(1.1) brightness(1.05);
    }
    
    @media (prefers-color-scheme: dark) {
      .site-logo {
        filter: brightness(1.2);
      }
    }
  }
}

/* Navigation */
nav {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--color-bg);
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/* Hide scrollbars */
nav::-webkit-scrollbar {
  display: none;
}

.nav-container {
  display: flex;
  justify-content: center; /* Center the nav links */
  align-items: center;
  padding: 0 0.5rem; /* Reduce padding */
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative; /* 添加相对定位 */
  overflow-x: auto; /* 允许横向滚动 */
  scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

.nav-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge 隐藏滚动条 */
}

.nav-links {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

/* Navigation links - Base styles */
nav a {
  display: inline-block;
  margin: 0 calc(var(--nav-item-spacing) / 2);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: normal;
  position: relative;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}

/* Active state styles */
.nav-links a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Hover state - desktop only */
@media (hover: hover) {
  nav a:not(.active):hover {
    color: var(--color-accent);
  }
}

/* Touch device state */
@media (hover: none) {
  nav a:active {
    color: var(--color-accent);
  }
}

/* Navigation scroll effect */
nav.scrolled {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: var(--color-bg-translucent);
  box-shadow: var(--box-shadow);
}

/* ====================================
   5. MAIN CONTENT
==================================== */
main {
  font-family: var(--font-main);
  max-width: var(--container-width);
  padding: 2rem 2rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

/* Content sections */
section {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Content boxes */
.content-box {
  margin-bottom: 3rem;
  max-width: 100%;
}

.content-box:first-child {
  margin-top: 0;
}

.content-box h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-content p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.8;
}

/* Video container */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--box-shadow);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ====================================
   7. SOCIAL MEDIA
==================================== */
.social-icons-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.social-icons {
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 600px;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem;
  width: 95px;
}

.social-icon svg,
.youtube-svg,
.rednote-svg,
.podcasts-svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.social-icon span {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ====================================
   9. FOOTER
==================================== */
body > footer {
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: transparent;
  margin-top: auto;
  color: var(--color-text);
  font-family: var(--font-footer);
  font-size: 0.6rem ;
  font-weight: 200;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

body > footer p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Print styles */
@media print {
  header, footer {
    text-align: center;
    margin: 1em 0;
  }
}

/* ====================================
   10. UTILITIES
==================================== */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.selectable {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Allow text selection in content areas */
.blog-content, 
.blog-post-container,
.project-description,
.post-content {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  touch-action: auto;
}

/* ====================================
   11. RESPONSIVE STYLES
==================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  header {
    padding: 0.5rem 0;
  }
  
  main {
    padding: 2rem 1.5rem 2rem;
}

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

  .social-icons {
    gap: 1rem;
  }
  
  .social-icon svg,
  .youtube-svg,
  .rednote-svg,
  .podcasts-svg {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .content-box {
    margin-bottom: 2.5rem;
  }
  
  .video-container {
    margin: 1.5rem 0;
  }
  
  .nav-container {
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .nav-links {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }
  
  header {
    padding: 0.5rem 0;
  }
  
  .video-container {
    margin: 1.5rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .content-box {
    margin-bottom: 2.5rem;
  }
  
  .video-container {
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  body {
    margin-top: 0.25rem;
  }
  
  header {
    padding: 0.3rem 0;
  }
  
  main {
    padding: 1.5rem 1rem 1.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .social-icons {
    gap: 0.75rem;
  }
  
  .social-icon svg,
  .youtube-svg,
  .rednote-svg,
  .podcasts-svg {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.3rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .blog-grid {
    margin-top: 1.5rem;
  }
  
  .video-container {
    margin: 1.25rem 0;
  }
}

/* ====================================
   12. DARK MODE SPECIFIC
==================================== */
  @media (prefers-color-scheme: dark) {
    nav {
    background: rgba(18, 18, 18, 0.95);
    }
    
nav.scrolled {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
    background-color: rgba(18, 18, 18, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15);
    }
    
    .site-logo {
      filter: brightness(1.2);
    }
    
  .error-message,
  .no-posts-message {
    text-align: center;
  width: 100%;
    padding: 2rem 1rem;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .blog-post footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

/* ====================================
   13. TOUCH DEVICES
==================================== */
@media (hover: none) {
  .button:active {
    transform: scale(0.98);
  }
  
  nav a:active {
    color: var(--color-accent);
  }
}

/* ====================================
   14. PRINT STYLES
==================================== */
@media print {
  body {
    font-size: 12pt;
    background: white;
    color: black;
  }
  
  nav, .social-icons, .button, .video-container {
    display: none;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  
  .blog-card {
    page-break-inside: avoid;
    box-shadow: none;
  }
  
  .blog-content h3 {
    margin-top: 1em;
  }
  
  header, footer {
    text-align: center;
    margin: 1em 0;
  }
}

/* Contact Page Specific Styles */
.contact-list,
.social-links {
  list-style-type: none; /* Remove default bullet points */
  padding-left: 0; /* Remove default left padding */
  margin-bottom: 2rem;
  text-align: center;
}

.contact-list li,
.social-links li {
  margin-bottom: 1rem;
}

.social-links-container {
  margin-top: 3rem;
}

.social-links-container h2 {
  margin-bottom: 1.5rem;
}

/* ====================================
   PROJECT STYLES
==================================== */

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--border-radius-medium); /* 修改为四周都有圆角 */
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.project-image {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  position: relative;
  overflow: hidden;
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0; /* 图片只保留上方圆角 */
}

.project-content {
  padding: 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: -1rem; /* 添加负边距使内容向上移动 */
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-content p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.project-content .read-more {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 0.75rem;
  align-self: center;
}

/* Project Page Specific */
.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.project-header {
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-header h1 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-radius: var(--border-radius-small);
  font-size: 0.85rem;
  font-weight: 500;
}

.project-date {
  color: var(--color-muted);
}

.project-hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.project-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-medium);
}

.project-section {
  max-width: 600px;
  margin: 0 auto 4rem;
}

.project-section h2 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-content h3 {
  margin: 2rem 0 0.5rem;
  line-height: 1.2;
}

.image-caption {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Language-specific content visibility */
/* Hide elements by default unless they have the visibility class */
[data-lang-en],
[data-lang-zh] {
    display: none; 
}

/* Show the element corresponding to the active language */
.language-visible {
  display: block; /* Or inline, inline-block depending on the element type */
}

/* Optional: Explicitly hide the inactive language (redundant with default hide, but clearer) */
.language-hidden {
    display: none !important; /* Use !important just in case of specificity issues */
}

/* Remove the old rules */
/*
[data-lang-en].lang-active,
[data-lang-zh].lang-active {
  display: block; 
}
*/

/* Responsive adjustments */
@media (max-width: 1200px) {
  .projects-grid,
  .project-container,
  .project-hero {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem; /* 保持一致的左右内边距 */
  }

  .project-content {
    padding: 1rem 1.25rem; /* 调整移动端内边距 */
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem; /* 进一步减小移动端左右内边距 */
  }

  .project-content {
    padding: 0.875rem 1rem; /* 进一步调整移动端内边距 */
  }

  .project-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .project-category {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
}

/* 添加链接的不可选择样式 */
a {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 允许链接点击 */
a[href] {
  pointer-events: auto;
}

/* 禁用右键菜单 */
body {
  -webkit-context-menu: none;
  -moz-context-menu: none;
  -ms-context-menu: none;
  context-menu: none;
}

/* 禁用开发者工具快捷键 */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-drag: none;
  -webkit-context-menu: none;
  -moz-context-menu: none;
  -ms-context-menu: none;
  context-menu: none;
}

/* ====================================
   X. BLOG SPECIFIC STYLES (This section is now in blog.css)
==================================== */
/* REMOVED All styles previously under this section */

/* ====================================
   Y. BUTTON STYLES (General & Specific)
==================================== */
/* Common Button Styles (including read-more and back-to-posts) */
.button,
.project-content .read-more,
.back-to-posts /* Assuming this class exists */ {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 700; /* Bold */
  background-color: transparent; /* Ensure no background interference */
  border: none; /* Ensure no border interference */
  padding: 0; /* Reset padding if needed, adjust per button type if necessary */
  cursor: pointer;
  transition: none; /* Remove transitions */
}

/* Override hover/active states to maintain default appearance */
.button:hover,
.project-content .read-more:hover,
.back-to-posts:hover,
.button:active,
.project-content .read-more:active,
.back-to-posts:active {
  color: var(--color-accent); /* Keep original color */
  text-decoration: underline; /* Keep underline */
  background-color: transparent; /* Keep transparent background */
  transform: none; /* Prevent any transform effects */
  box-shadow: none; /* Prevent any shadow effects */
}

/* Specific adjustments if needed, e.g., for .read-more alignment */
.project-content .read-more {
  margin-top: auto; /* Keep vertical alignment */
  margin-bottom: 0.75rem; /* Keep original margin */
  align-self: center; /* Keep centered */
}

/* Show the active language version */
[data-lang-en].lang-active,
[data-lang-zh].lang-active {
  display: block; /* Ensure !important is removed */
}
/* Optional: You might need specific rules for different element types */
/* E.g., span[data-lang-en].lang-active { display: inline !important; } */

/* 确保联系页面的链接可点击 - 增强版 */
.contact-list a,
.social-links a {
  pointer-events: auto;
  cursor: pointer;
  touch-action: auto;
  -webkit-tap-highlight-color: rgba(0,0,0,.1);
  position: relative;
  z-index: 10;
  text-decoration: underline;
  color: var(--color-link);
}

/* 修复所有链接的交互问题 */
a[href] {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

/* 确保列表项不阻挡链接交互 */
.contact-list li,
.social-links li {
  margin-bottom: 1rem;
  position: relative;
}
