:root {
    color-scheme: dark light;
    --glass: rgba(255, 255, 255, 0.25);
    --blur: blur(26px);
    --text: #08090c;
    --window-radius: 22px;
    --dock-height: 110px;
  }
  
  /* 动态字体大小 - 移动端适配 */
  html {
    font-size: clamp(14px, 3vw, 16px);
  }
  
  * {
    box-sizing: border-box;
  }
  
body {
    margin: 0;
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    /* 移动端滚动优化 */
    -webkit-overflow-scrolling: touch;
  }
  
  /* 图片和媒体响应式 */
  img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
  }
  
  .desktop {
    position: fixed;
    inset: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(255, 0, 150, 0.8), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.8), transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(255, 200, 0, 0.8), transparent 50%),
      linear-gradient(
        135deg,
        #ff006e,
        #8338ec,
        #3a86ff,
        #06ffa5,
        #ffbe0b,
        #fb5607,
        #ff006e
      );
    background-size: 200% 200%;
    z-index: -2;
    animation: rainbow-flow 20s ease infinite;
  }
  
  @keyframes rainbow-flow {
    0% {
      background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%;
    }
    25% {
      background-position: 100% 0%, 0% 100%, 50% 50%, 25% 75%;
    }
    50% {
      background-position: 100% 100%, 0% 0%, 50% 50%, 50% 50%;
    }
    75% {
      background-position: 0% 100%, 100% 0%, 50% 50%, 75% 25%;
    }
    100% {
      background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%;
    }
  }
  
  .glass {
    background: transparent;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
  }
  
  .menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.04em;
    z-index: 3;
  }
  
  .menu-left, .menu-right {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .apple-logo {
    font-size: 16px;
  }
  
  main {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: calc(var(--dock-height) + 32px);
    padding: 24px;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }
  
  .window {
    position: absolute;
    inset: 28px;
    border-radius: var(--window-radius);
    box-shadow: 0 40px 90px rgba(10, 10, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.23, 0.88, 0.32, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
  }
  
  .window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }
  
  .window.closing {
    opacity: 0;
    transform: scale(0.88) translateY(40px);
    pointer-events: none;
  }
  
  .hidden {
    display: none;
  }
  
  .title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--window-radius) var(--window-radius) 0 0;
  }
  
  .traffic-lights {
    display: flex;
    gap: 8px;
  }
  
  .traffic-lights button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #ff5f57;
  }
  
  .traffic-lights .minimize { background: #febc2e; }
  .traffic-lights .maximize { background: #28c840; }
  
  .title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
  }
  
  .content {
    padding: 28px;
    color: rgba(17, 24, 39, 0.9);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    border-radius: 0 0 var(--window-radius) var(--window-radius);
    box-sizing: border-box;
  }
  
  /* 主页和个人优势窗口：完全隐藏滚动条（包括水平和垂直） */
  #about .content,
  #resume .content {
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  
  /* 办公技能窗口：允许溢出以显示3D效果 */
  #skills .content {
    overflow: visible;
  }
  
  .content::-webkit-scrollbar {
    width: 8px;
  }
  
  .content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
  }
  
  h1, h2, h3, p {
    margin: 0 0 12px;
  }
  
  .pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .pill {
    background: rgba(17, 24, 39, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
  }
  
  .grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .grid article {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  
  .skills {
    padding-top: 0;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    overflow: hidden;
    padding-top: 20px;
  }
  
  .skill-list-container {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 35px;
    height: 100%;
    margin-top: -50px;
  }
  
  .skill-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  
  .skill-list-item {
    font-size: 18px;
    font-weight: 500;
    color: rgba(8, 9, 12, 0.75);
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
    user-select: none;
    line-height: 1.3;
    opacity: 0;
    transform: translateX(-120px);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .skill-list-item.animate-in {
    opacity: 1;
    transform: translateX(0);
  }
  
  .skill-list-item:hover,
  .skill-list-item.highlight {
    transform: scale(1.35) translateX(0) !important;
    color: rgba(8, 9, 12, 0.95);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .skill-cloud-container {
    flex: 1;
    height: 100%;
    min-height: 600px;
    perspective: 1500px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: 20px;
  }
  
  .skill-cloud {
    position: relative;
    width: 1px;
    height: 1px;
    transform-style: preserve-3d;
    animation: rotate-cloud 25s linear infinite;
    transform-origin: center center;
  }
  
  .skill-cloud.paused {
    animation-play-state: paused;
  }
  
  @keyframes rotate-cloud {
    0% {
      transform: translate(-50%, -50%) scale(1) rotateX(0deg) rotateY(0deg);
    }
    100% {
      transform: translate(-50%, -50%) scale(1) rotateX(360deg) rotateY(360deg);
    }
  }
  
  .skill-card {
    position: absolute;
    border-radius: 20px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 28px rgba(10, 10, 24, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-weight: 500;
    color: rgba(8, 9, 12, 0.85);
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
    backface-visibility: visible;
    transition: none;
    will-change: transform;
    pointer-events: auto;
  }
  
  .skill-card:hover {
    z-index: 100;
    filter: brightness(1.1);
  }
  
  .skill-card img {
    width: 48px;
    height: 48px;
  }
  
  .timeline div {
    margin-bottom: 20px;
  }
  
  .experience {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .experience-item {
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 40px rgba(9, 9, 20, 0.12);
    opacity: 0;
    transform: translateX(200px);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .experience-item.animate-in {
    opacity: 1;
    transform: translateX(0);
  }
  
  .experience-item header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .exp-company {
    font-weight: 600;
    margin: 0;
    color: rgba(8, 9, 12, 0.9);
  }
  
  .exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  
  .exp-date::before {
    content: "⏱";
    margin-right: 6px;
  }
  
  .exp-role::before {
    content: "•";
    margin: 0 6px;
  }
  
  .exp-summary {
    margin: 0 0 12px;
    color: rgba(15, 23, 42, 0.85);
    font-size: 15px;
  }
  
  .experience-item ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .experience-item li {
    line-height: 1.65;
    color: rgba(8, 9, 12, 0.88);
  }
  
  .experience-item li::marker {
    color: rgba(99, 102, 241, 0.9);
  }
  
  .projects {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .project-item {
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 45px rgba(7, 7, 16, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateX(200px);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .project-item.animate-in {
    opacity: 1;
    transform: translateX(0);
  }
  
  .project-item header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .project-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(7, 9, 12, 0.93);
  }
  
  .project-role {
    margin: 4px 0 0;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
  }
  
  .project-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: rgba(67, 56, 202, 0.9);
    font-size: 13px;
  }
  
  .project-summary {
    margin: 0;
    color: rgba(17, 24, 39, 0.8);
    line-height: 1.6;
  }
  
  .project-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
  }
  
  .project-section ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .project-section li {
    line-height: 1.65;
    color: rgba(7, 9, 12, 0.92);
  }
  
  .bouncing-number {
    display: inline-block;
    animation: number-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-fill-mode: both;
  }
  
  @keyframes number-bounce {
    0% {
      transform: translateY(0);
    }
    30% {
      transform: translateY(-8px);
    }
    60% {
      transform: translateY(-3px);
    }
    80% {
      transform: translateY(-1px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  .awards {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
  }

  .awards-wordcloud {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding: 40px 20px;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .sparks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  .award-word {
    display: inline-block;
    font-weight: 700;
    cursor: move;
    transition: transform 0.3s ease;
    color: transparent;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #ffffff;
    text-shadow: 
      0 0 3px rgba(255, 255, 255, 0.4),
      0 0 6px rgba(255, 255, 255, 0.2);
    animation: neon-flicker 3s ease-in-out infinite;
    will-change: opacity, text-shadow, transform;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    user-select: none;
    /* 统一字体大小 */
    font-size: 48px;
    /* 初始状态：从右侧隐藏 */
    opacity: 0;
    transform: translateX(300px);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .award-word.animate-in {
    opacity: 1;
    transform: translateX(0);
  }
  
  .award-word[data-color="cyan"],
  .award-word[data-color="magenta"],
  .award-word[data-color="yellow"],
  .award-word[data-color="green"] {
    -webkit-text-stroke-color: #ffffff;
    --glow-color: rgba(255, 255, 255, 0.4);
  }
  
  .award-word.dragging {
    cursor: grabbing;
    z-index: 10;
    opacity: 0.8;
  }
  
  .award-word:hover {
    transform: scale(1.15);
  }
  
  /* 统一字体大小，不再区分大小 */
  .award-word[data-size="large"],
  .award-word[data-size="medium"],
  .award-word[data-size="small"] {
    font-size: 48px;
  }
  
  .award-word[data-size="large"] {
    animation-delay: 0s;
  }
  
  .award-word[data-size="medium"] {
    animation-delay: 0.5s;
  }
  
  .award-word[data-size="small"] {
    animation-delay: 1s;
  }
  
  @keyframes neon-flicker {
    0%, 10% {
      opacity: 1;
      text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.4),
        0 0 6px rgba(255, 255, 255, 0.2);
    }
    11%, 13% {
      opacity: 0.6;
      text-shadow: 
        0 0 2px rgba(255, 255, 255, 0.3),
        0 0 4px rgba(255, 255, 255, 0.15);
    }
    14%, 16% {
      opacity: 1;
      text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.4),
        0 0 6px rgba(255, 255, 255, 0.2);
    }
    17%, 19% {
      opacity: 0.7;
      text-shadow: 
        0 0 2.5px rgba(255, 255, 255, 0.35),
        0 0 5px rgba(255, 255, 255, 0.18);
    }
    20%, 80% {
      opacity: 1;
      text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.4),
        0 0 6px rgba(255, 255, 255, 0.2);
    }
    81%, 83% {
      opacity: 0.6;
      text-shadow: 
        0 0 2px rgba(255, 255, 255, 0.3),
        0 0 4px rgba(255, 255, 255, 0.15);
    }
    84%, 86% {
      opacity: 1;
      text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.4),
        0 0 6px rgba(255, 255, 255, 0.2);
    }
    87%, 89% {
      opacity: 0.8;
      text-shadow: 
        0 0 2.5px rgba(255, 255, 255, 0.35),
        0 0 5px rgba(255, 255, 255, 0.18);
    }
    90%, 100% {
      opacity: 1;
      text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.4),
        0 0 6px rgba(255, 255, 255, 0.2);
    }
  }
  
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
  }
  
  .stats strong {
    font-size: clamp(32px, 4vw, 48px);
    display: block;
  }
  
  .advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .advantage-list li {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 30px rgba(7, 7, 16, 0.1);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(8, 9, 12, 0.9);
    opacity: 0;
    transform: translateX(200px);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .advantage-list li.animate-in {
    opacity: 1;
    transform: translateX(0);
  }
  
  .hero-name-wrapper {
    position: relative;
    width: 100%;
    height: clamp(80px, 10vw, 120px);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #heroParticlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  .hero-name-wrapper {
    position: relative;
    z-index: 2;
  }
  
  .meta-grid {
    position: relative;
    z-index: 2;
  }

  .hero-name {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
    opacity: 0;
  }

  .hero-name.visible {
    opacity: 0.8;
  }
  
  .hero-caption {
    font-size: 18px;
    color: rgba(15, 23, 42, 0.65);
    margin-bottom: 32px;
  }
  
  .meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }
  
  .info-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: translateY(120px);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .info-item.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  .info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 16px rgba(15, 15, 35, 0.25);
    opacity: 0.8;
  }
  
  .info-icon img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    opacity: 1;
  }
  
  .info-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 4px;
  }
  
  .info-value {
    font-size: 16px;
    color: rgba(8, 9, 12, 0.95);
    margin: 0;
  }
  
  .dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    border-radius: 28px;
    display: flex;
    gap: 22px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35);
    min-height: var(--dock-height);
  }
  
  .dock-icon {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    transition: transform 0.2s ease, filter 0.2s ease;
    padding: 4px 8px;
  }
  
  .dock-bubble {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: var(--bubble-color, rgba(255,255,255,0.18));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  
  .dock-icon:hover .dock-bubble,
  .dock-icon.active .dock-bubble {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }
  
  .dock-icon:hover,
  .dock-icon.active {
    transform: translateY(-6px);
  }
  
  .dock-icon.active {
    filter: drop-shadow(0 12px 15px rgba(15, 15, 25, 0.45));
  }
  
  .dock-icon:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
  }
  
  @media (max-width: 900px) {
    main {
      padding: 12px;
      inset: 48px 0 calc(var(--dock-height) + 12px) 0;
    }
  
    .window {
      inset: 16px;
    }
  
    .content {
      padding: 20px;
    }
  
    .dock {
      width: calc(100% - 24px);
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }
  
    .dock-bubble {
      width: 50px;
      height: 50px;
    }
  }
  
  /* ========== 移动端适配 (768px及以下) ========== */
  @media (max-width: 768px) {
    /* 根字体大小调整 */
    html {
      font-size: clamp(14px, 4vw, 16px);
    }
    
    /* 菜单栏适配 */
    .menu-bar {
      height: 40px;
      padding: 0 12px;
      font-size: 12px;
    }
    
    .menu-left, .menu-right {
      gap: 8px;
    }
    
    .apple-logo {
      font-size: 14px;
    }
    
    /* 主内容区域 */
    main {
      top: 40px;
      padding: 8px;
      bottom: calc(var(--dock-height) + 8px);
    }
    
    /* 窗口适配 */
    .window {
      inset: 8px;
      border-radius: 16px;
    }
    
    .window.active {
      transform: scale(1) translateY(0);
    }
    
    /* 标题栏 */
    .title-bar {
      padding: 10px 12px;
    }
    
    .title {
      font-size: 12px;
    }
    
    .traffic-lights button {
      width: 10px;
      height: 10px;
    }
    
    /* 内容区域 */
    .content {
      padding: 16px;
      font-size: 14px;
      line-height: 1.6;
      -webkit-overflow-scrolling: touch;
    }
    
    /* 主页内容 */
    .hero-name {
      font-size: clamp(36px, 8vw, 48px) !important;
    }
    
    .hero-name-wrapper {
      height: clamp(60px, 12vw, 80px);
      margin-bottom: 12px;
    }
    
    .meta-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .info-item {
      padding: 12px;
      gap: 12px;
    }
    
    .info-icon {
      width: 40px;
      height: 40px;
      min-width: 40px;
    }
    
    .info-label {
      font-size: 12px;
    }
    
    .info-value {
      font-size: 14px;
    }
    
    /* 工作经历和项目经历 */
    .experience-item,
    .project-item {
      padding: 16px;
      gap: 12px;
    }
    
    .exp-company,
    .project-name {
      font-size: 16px;
    }
    
    .exp-summary,
    .project-summary {
      font-size: 14px;
    }
    
    .experience-item li,
    .project-section li,
    .project-section p {
      font-size: 14px;
      line-height: 1.6;
    }
    
    .exp-meta {
      font-size: 11px;
      flex-direction: column;
      gap: 4px;
    }
    
    /* 个人优势 */
    .advantage-list li {
      padding: 14px 16px;
      font-size: 14px;
      line-height: 1.6;
    }
    
    /* 办公技能 - 移动端布局 */
    .skills {
      flex-direction: column;
      gap: 0;
      padding-top: 0;
      height: 100%;
      overflow: visible;
    }
    
    .skill-list-container {
      width: 100%;
      margin-left: 0;
      margin-top: 0;
      height: auto;
      flex-shrink: 0;
      padding: 12px 0;
      /* 去掉背景框 */
      border-bottom: none;
      background: transparent;
      z-index: 10;
      position: relative;
    }
    
    .skill-list {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      padding: 0 10px;
    }
    
    .skill-list-item {
      font-size: 12px;
      padding: 6px 10px;
      min-height: 44px;
      min-width: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .skill-cloud-container {
      flex: 1;
      min-height: 0;
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;
      overflow: visible;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      perspective: 800px;
      perspective-origin: 50% 50%;
      left: 0;
      right: 0;
    }
    
    .skill-cloud {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 1px;
      height: 1px;
      margin: 0;
      padding: 0;
      transform: translate(-50%, -50%) scale(0.85) rotateX(0deg) rotateY(0deg);
      transform-origin: center center;
      transform-style: preserve-3d;
      animation: rotate-cloud-mobile 25s linear infinite;
    }
    
    @keyframes rotate-cloud-mobile {
      0% {
        transform: translate(-50%, -50%) scale(0.85) rotateX(0deg) rotateY(0deg);
      }
      100% {
        transform: translate(-50%, -50%) scale(0.85) rotateX(360deg) rotateY(360deg);
      }
    }
    
    .skill-card {
      width: 75px;
      height: 75px;
      padding: 10px 6px;
    }
    
    .skill-card img {
      width: 30px;
      height: 30px;
    }
    
    .skill-card span {
      font-size: 9px;
    }
    
    /* 获得奖项 */
    .awards-wordcloud {
      padding: 20px 15px;
      gap: 25px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    
    .award-word[data-size="large"],
    .award-word[data-size="medium"],
    .award-word[data-size="small"] {
      font-size: 28px;
      max-width: calc(100% - 20px);
      word-wrap: break-word;
      white-space: normal;
      text-align: center;
      padding: 0 10px;
      box-sizing: border-box;
    }
    
    .award-word {
      transform: translateX(250px) !important;
    }
    
    .award-word.animate-in {
      transform: translateX(0) !important;
    }
    
    .awards-wordcloud {
      padding: 20px 15px;
      gap: 30px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      min-height: 0;
    }
    
    /* Dock导航 */
    .dock {
      width: calc(100% - 16px);
      height: auto;
      padding: 12px;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      bottom: 8px;
      left: 8px;
      right: 8px;
      transform: none;
    }
    
    .dock-icon {
      min-width: 44px;
      min-height: 44px;
      padding: 8px;
    }
    
    .dock-bubble {
      width: 44px;
      height: 44px;
    }
    
    .dock-icon span:last-child {
      font-size: 10px;
      margin-top: 4px;
    }
    
    /* 去除移动端hover效果 */
    .skill-list-item:hover,
    .skill-card:hover,
    .award-word:hover,
    .dock-icon:hover {
      transform: none;
    }
    
    .dock-icon:hover .dock-bubble {
      transform: none;
    }
    
    /* 添加touch反馈 */
    .skill-list-item:active,
    .dock-icon:active,
    .traffic-lights button:active {
      opacity: 0.7;
      transform: scale(0.95);
    }
    
    /* 滚动优化 */
    body {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    
    #about .content,
    #resume .content {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
  }
  
  /* ========== 小屏手机适配 (480px及以下) ========== */
  @media (max-width: 480px) {
    html {
      font-size: 14px;
    }
    
    main {
      padding: 4px;
      top: 40px;
      bottom: calc(var(--dock-height) + 4px);
    }
    
    .window {
      inset: 4px;
      border-radius: 12px;
    }
    
    .content {
      padding: 12px;
      font-size: 14px;
    }
    
    .title-bar {
      padding: 8px 10px;
    }
    
    .hero-name {
      font-size: clamp(28px, 10vw, 36px) !important;
    }
    
    .hero-name-wrapper {
      height: clamp(50px, 15vw, 60px);
    }
    
    .info-item {
      padding: 10px;
      gap: 10px;
    }
    
    .info-icon {
      width: 36px;
      height: 36px;
      min-width: 36px;
    }
    
    .experience-item,
    .project-item {
      padding: 12px;
    }
    
    .exp-company,
    .project-name {
      font-size: 15px;
    }
    
    .advantage-list li {
      padding: 12px;
      font-size: 13px;
    }
    
    .skill-cloud-container {
      flex: 1;
      min-height: 0;
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: visible;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      perspective: 600px;
      perspective-origin: 50% 50%;
      left: 0;
      right: 0;
    }
    
    .skill-cloud {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 1px;
      height: 1px;
      margin: 0;
      padding: 0;
      transform: translate(-50%, -50%) scale(0.75) rotateX(0deg) rotateY(0deg);
      transform-origin: center center;
      transform-style: preserve-3d;
      animation: rotate-cloud-small 25s linear infinite;
    }
    
    @keyframes rotate-cloud-small {
      0% {
        transform: translate(-50%, -50%) scale(0.75) rotateX(0deg) rotateY(0deg);
      }
      100% {
        transform: translate(-50%, -50%) scale(0.75) rotateX(360deg) rotateY(360deg);
      }
    }
    
    .skill-card {
      width: 65px;
      height: 65px;
      padding: 8px 5px;
    }
    
    .skill-card img {
      width: 26px;
      height: 26px;
    }
    
    .skill-card span {
      font-size: 9px;
    }
    
    .dock {
      padding: 8px;
      gap: 6px;
    }
    
    .dock-bubble {
      width: 40px;
      height: 40px;
    }
    
    .dock-icon {
      min-width: 44px;
      min-height: 44px;
      padding: 6px;
    }
    
    .award-word[data-size="large"] {
      font-size: 28px;
    }
    
    .award-word[data-size="medium"] {
      font-size: 22px;
    }
    
    .award-word[data-size="small"] {
      font-size: 16px;
    }
  }
  
  /* ========== 超小屏手机适配 (320px及以下) ========== */
  @media (max-width: 320px) {
    html {
      font-size: 13px;
    }
    
    .menu-bar {
      height: 36px;
      padding: 0 8px;
      font-size: 11px;
    }
    
    main {
      top: 36px;
      padding: 2px;
    }
    
    .window {
      inset: 2px;
    }
    
    .content {
      padding: 10px;
    }
    
    .hero-name {
      font-size: clamp(24px, 12vw, 28px) !important;
    }
    
    .dock {
      padding: 6px;
      gap: 4px;
    }
    
    .dock-bubble {
      width: 36px;
      height: 36px;
    }
    
    .dock-icon span:last-child {
      font-size: 9px;
    }
  }
  
  /* ========== 平板竖屏适配 (481px-768px) ========== */
  @media (min-width: 481px) and (max-width: 768px) {
    .meta-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .skills {
      flex-direction: row;
    }
    
    .skill-list-container {
      width: 180px;
    }
    
    .skill-cloud-container {
      min-height: 500px;
    }
  }