* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(45deg, #0a0a0a 30%, #1a1a1a 100%);
}

.title-wrapper {
    text-align: center;
}

.glow-text {
    font-size: 6rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    animation: fadeIn 2s ease-out;
    text-shadow: 0 0 20px rgba(0, 231, 255, 0.6);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.services {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.services span {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.8;
    position: relative;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.services span::after {
    content: "•";
    position: absolute;
    right: -1rem;
    color: rgba(0, 231, 255, 0.6);
}

.services span:last-child::after {
    display: none;
}

.glow-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 40px rgba(0, 231, 255, 0.8);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 231, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 10001; /* 确保高于模态框的z-index */
    
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 231, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 2s infinite;
    z-index: 10001; /* 确保高于模态框的z-index */
}

.nav-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-dot.active {
    background: #00e7ff;
    transform: scale(1.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@media (max-width: 768px) {
    .glow-text {
        font-size: 3.5rem;
        padding: 0 20px;
    }
    
    .services {
        gap: 1rem;
        padding: 0 20px;
    }
    
    .services span {
        font-size: 1rem;
    }
    
    .nav-indicator {
        display: none;
    }
}


/* 在style.css添加 */
.projects-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* 确保低于光标的z-index */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.projects-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, rgba(26,26,26,0.9) 0%, rgba(16,16,16,0.95) 100%);
    border-radius: 20px;
    padding: 2rem;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    animation: modalEnter 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    border: 1px solid rgba(0,231,255,0.1);
    box-shadow: 0 0 50px rgba(0,231,255,0.1);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,231,255,0.2);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #00e7ff, #00b4cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: #00e7ff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    cursor: none !important; /* 移除默认指针 */
}

.close-btn:hover {
    transform: rotate(90deg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    overflow-y: auto;
    height: calc(100vh - 200px);
    min-height: 300px;
    padding: 0 15px 20px 0;
    margin-right: -15px;
    align-content: flex-start;
    grid-auto-rows: minmax(200px, auto);
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,231,255,0.1),
        transparent
    );
    transition: 0.5s;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,231,255,0.1);
}

.project-card:hover::before {
    left: 100%;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.2);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: #00e7ff;
}

.project-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}


.projects-modal * {
    pointer-events: auto; /* 允许交互元素响应事件 */
    cursor: none !important;
}


.projects-modal {
    pointer-events: auto; /* 确保整个模态框区域可以交互 */
}



/* 在style.css中添加 */
.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 10002; /* 确保在最顶层 */
    cursor: none !important;
}

.easter-egg:hover {
    opacity: 1;
}

.easter-egg-icon {
    width: 100%;
    height: 100%;
    background: rgba(0, 231, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00e7ff;
    border: 2px solid rgba(0, 231, 255, 0.5);
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.easter-egg:hover .easter-egg-icon {
    transform: scale(1);
    background: rgba(0, 231, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 231, 255, 0.3);
}

/* 移动端隐藏 */
@media (max-width: 768px) {
    .easter-egg {
        display: none;
    }
}


.projects-grid::-webkit-scrollbar {
    width: 8px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(0,231,255,0.5);
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0,231,255,0.8);
}



/* 增加适配查询 */
@media (min-width: 1600px) {
    .modal-content {
        max-width: 1400px;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        height: calc(90vh - 150px);
    }
}

@media (max-height: 800px) {
    .projects-grid {
        height: calc(90vh - 120px);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 1rem;
    }
    .projects-grid {
        height: calc(85vh - 100px);
        min-height: 200px;
        grid-template-columns: 1fr;
    }
}











/* 在style.css中添加 */
@media (pointer: coarse) {
    .custom-cursor,
    .cursor-ring {
        display: none !important;
    }
}

.touch-ripple {
    position: fixed;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 231, 255, 0.6);
    border-radius: 50%;
    animation: ripple 1s ease-out forwards;
    pointer-events: none;
}

.touch-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    background: rgba(0, 231, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: trail 0.6s ease-out forwards;
}

@keyframes ripple {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes trail {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}
