* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f1423 0%, #151a2e 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    font-size: 16px;
}

/* 基础响应式设计设置 */
:root {
    --base-font-size: 16px;
    --nav-padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 5vw, 5rem);
    --main-content-padding: clamp(2rem, 15vh, 8rem) clamp(3rem, 15vw, 15rem);
    --section-gap: clamp(2rem, 10vh, 5rem);
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--nav-padding);
    position: relative;
    z-index: 100;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.354);
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.logo-icon {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: linear-gradient(45deg, #36c2cf, #5f27cd, #341f97);
    border-radius: clamp(10px, 2vw, 15px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    /*字间距*/
    letter-spacing: -0.15rem;
    box-shadow: 0 0 8px 2px rgb(255, 255, 255);
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    list-style: none;
    
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.nav-link {
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: 6px;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after {
    display: none;
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #36c2cf, #5f27cd);
    border-radius: 3px;
}

.contact-btn {
    background: linear-gradient(90deg, #36c2cf, #5f27cd);
    color: white;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1.2rem, 3vw, 1.5rem);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(95, 39, 205, 0.3);
}

/* 主要内容 */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(15rem, -20vh, -20rem) clamp(2rem, 15vw, 15rem) clamp(4rem, 8vh, 8rem) clamp(2rem, 0vw, 15rem);
    width: 80%;
    height: 80%;
    min-height: calc(90vh - 120px);
    position: relative;
    /*div居中*/
    margin: auto auto;
}
.main-content2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.5rem, 3vh, 3rem) clamp(2rem, 15vw, 15rem) clamp(4rem, 8vh, 8rem) clamp(2rem, 15vw, 15rem);
    width: 100%;
    height: 80%;
    min-height: calc(90vh - 120px);
    position: relative;
    /*div居中*/
    margin: clamp(50px, 10vh, 100px) auto 0px auto;
    /*描边*/
    border: 2px solid #ffffff;
}
.left-section {
    max-width: 50%;
    z-index: 10;
    margin: auto 0 auto 0;
    padding: clamp(5rem, 10vh, 10rem) 0 0 clamp(2.5rem, 5vw, 5rem);
}
#canvas-container {
    width: clamp(400px, 50vw, 800px);
    height: clamp(400px, 50vw, 800px);
    margin-right: clamp(30px, 5vw, 50px);
    margin-top: clamp(100px, 20vh, 180px);
    margin-left: clamp(30px, 5vw, 90px);
}

.title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 800;
    margin-bottom: clamp(2rem, 4vh, 4rem);
    background: linear-gradient(90deg, #ffffff, #d8d8d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.description {
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: clamp(3rem, 5vh, 5rem);
}

.skills {
    margin-bottom: clamp(3rem, 5vh, 5rem);
}

.skill-title {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    margin-bottom: clamp(2rem, 4vh, 4rem);
    color: #ffffff;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.3rem, 0.5vw, 0.5rem);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    margin-bottom: clamp(1rem, 2vh, 2rem);
}
.skill-category2 {
    margin-top: clamp(1.5rem, 3vh, 3rem);
}
.skill-dot {
    width: clamp(10px, 1.5vw, 12px);
    height: clamp(10px, 1.5vw, 12px);
    border-radius: 50%;
    background: linear-gradient(45deg, #36c2cf, #5f27cd);
}

.skill-dot.blue {
    background: #36c2cf;
}

.skill-dot.orange {
    background: #ff6b6b;
}

.skill-dot.light-blue {
    background: #54a0ff;
}

.skill-dot.gray {
    background: #747d8c;
}

.skill-name {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 2rem);
}

/* 侧边滚动指示器 */
.scroll-indicator {
    position: fixed;
    right: clamp(1rem, 3vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 1rem);
    align-items: center;
    z-index: 50;
}

.indicator-line {
    width: clamp(1.5px, 0.3vw, 2px);
    height: clamp(60px, 15vh, 100px);
    background: linear-gradient(to bottom, #36c2cf, transparent);
}

.indicator-dots {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.dot {
    width: clamp(8px, 1.5vw, 10px);
    height: clamp(8px, 1.5vw, 10px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* 页脚 */
.footer {
    padding: clamp(3rem, 5vh, 5rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0px solid rgba(255, 255, 255, 0.1);
}

.footer-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    /*字间距*/
    letter-spacing: 3px;
    /*修改字体为宋体*/
    font-family: "宋体", "SimSun", sans-serif;
}

.social-links {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.social-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.social-link:hover {
    color: #ffffff;
}

/* 滚动箭头样式 */
.scroll-up {
    position: fixed;
    top: clamp(4rem, 8vh, 8rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.scroll-down {
    position: fixed;
    bottom: clamp(1rem, 2vh, 2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.scroll-arrow {
    display: inline-block;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 向下箭头呼吸动画 */
.scroll-down .scroll-arrow {
    animation: breatheDown 2s infinite ease-in-out;
}

/* 向上箭头呼吸动画 */
.scroll-up .scroll-arrow {
    animation: breatheUp 2s infinite ease-in-out;
}

.scroll-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes breatheDown {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@keyframes breatheUp {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* 左右箭头呼吸动画 */
.page-arrow-left,
.carousel-arrow-left {
    animation: breatheLeft 2s infinite ease-in-out;
}

.page-arrow-right,
.carousel-arrow-right {
    animation: breatheRight 2s infinite ease-in-out;
}

@keyframes breatheLeft {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(10px);
    }
}

@keyframes breatheRight {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(-10px);
    }
}

/* 轮播容器样式 */
.portfolio-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: calc(90vh - 5px);
}

/* 轮播滑块容器 */
.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 单个轮播滑块 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

/* 轮播箭头样式 */
.carousel-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    height: 100px; /* 设置一个固定高度 */
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.glow {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.carousel-arrow-left {
    left: 0;
    width: 50%;
    height: 80%;
    justify-content: flex-start;
    padding-left: clamp(2rem, 5vw, 5rem);
}

.carousel-arrow-right {
    right: 0;
    width: 50%;
    height: 80%;
    justify-content: flex-end;
    padding-right: clamp(2rem, 5vw, 5rem);
}

/* 项目详情样式 */
.project-details {
    margin-top: clamp(1.5rem, 3vh, 3rem);
}

.project-details h3 {
    color: #ffffff;
    margin-bottom: clamp(1rem, 1.5vh, 1.5rem);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: clamp(0.8rem, 1vh, 1rem);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    position: relative;
    padding-left: clamp(1.2rem, 2vw, 1.5rem);
}

.project-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #36c2cf;
    font-size: 1.5rem;
}

/* 背景装饰 */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.bg-circle:nth-child(1) {
    width: clamp(300px, 40vw, 500px);
    height: clamp(300px, 40vw, 500px);
    background: #36c2cf;
    top: clamp(-50px, -10vh, -100px);
    right: clamp(-50px, -10vw, -100px);
}

.bg-circle:nth-child(2) {
    width: clamp(250px, 35vw, 400px);
    height: clamp(250px, 35vw, 400px);
    background: #5f27cd;
    bottom: clamp(-50px, -10vh, -100px);
    left: clamp(-50px, -10vw, -100px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        text-align: center;
        gap: 5rem;
    }
    
    .left-section {
        max-width: 100%;
    }
    
    .skill-grid {
        justify-content: center;
    }
    
    .polygon-head {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .main-content {
        padding: 2rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .polygon-head {
        width: 300px;
        height: 300px;
    }
    
    .footer {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .scroll-indicator {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
}
 /* 加载界面样式 */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #0f1423 0%, #151a2e 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 1s ease-in-out;
        }
        
        /* 加载界面背景装饰 */
        #loader .bg-decorations {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        
        #loader .bg-circle {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.2;
        }
        
        #loader .bg-circle:nth-child(1) {
            width: clamp(300px, 40vw, 500px);
            height: clamp(300px, 40vw, 500px);
            background: #36c2cf;
            top: clamp(-50px, -10vh, -100px);
            right: clamp(-50px, -10vw, -100px);
        }
        
        #loader .bg-circle:nth-child(2) {
            width: clamp(250px, 35vw, 400px);
            height: clamp(250px, 35vw, 400px);
            background: #5f27cd;
            bottom: clamp(-50px, -10vh, -100px);
            left: clamp(-50px, -10vw, -100px);
        }
        
        /* 加载图片样式 */
        #loader-image {
            width: clamp(150px, 20vw, 200px);
            height: clamp(150px, 20vw, 200px);
            margin-bottom: clamp(20px, 3vh, 30px);
            animation: pulse 2s infinite ease-in-out;
        }
        
        /* 加载文字样式 */
        #loader-text {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 600;
            color: white;
            margin-bottom: clamp(20px, 3vh, 30px);
            letter-spacing: 2px;
            animation: fadeIn 1s ease-in-out;
        }
        
        /* 进度条容器 */
        #progress-container {
            width: clamp(200px, 30vw, 300px);
            height: clamp(6px, 1vh, 8px);
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
        }
        
        /* 进度条 */
        #progress-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #36c2cf, #5f27cd);
            border-radius: 4px;
            transition: width 0.3s ease;
        }
        
        /* 进度百分比 */
        #progress-percent {
            margin-top: clamp(10px, 2vh, 15px);
            color: rgba(255, 255, 255, 0.7);
            font-size: clamp(1rem, 1.5vw, 1.2rem);
        }
        
        body {
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }
        body.loaded {
            opacity: 1;
        }
        
        /* 页面容器样式 - 单页应用 */
        .page-container {
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }
        
        .page {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
        }
        
        .page.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* 底部滑块控制样式 */
        .slider-controls {
            display: flex;
            justify-content: center;
            gap: clamp(2rem, 4.5vw, 4.5rem);
            padding: clamp(1rem, 2vh, 2rem) clamp(2rem, 5vw, 5rem);
            position: relative;
            z-index: 20;
        }

        .control-item {
            width: clamp(50px, 10vw, 80px);
            height: clamp(50px, 10vw, 80px);
            background-color: rgba(255, 255, 255, 0.721);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .control-item:hover {
            box-shadow: 0 7px 10px rgb(255, 255, 255);
            background-color: rgb(255, 255, 255);
            transform: translateY(-20px);
            opacity: 1;
        }

        .control-item.active {
            box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 8px 30px rgba(0, 0, 0, 0.5);
        }
        
        /* 内容从上往下出现的动画样式 */
        .main-content,
        .navbar,
        .footer,
        .scroll-indicator,
        .scroll-down,
        .draggable-image {
            opacity: 0;
            transform: translateY(-100px);
            transition: transform 0.8s ease-out, opacity 0.8s ease-out;
        }
        
        body.loaded .navbar {
            opacity: 1;
            transform: translateX(0);
            transition-delay: 0.2s;
        }
        
        body.loaded .main-content {
            opacity: 1;
            transform: translateX(0);
            transition-delay: 0.4s;
        }
        
        body.loaded .scroll-indicator,
        body.loaded .scroll-down {
            opacity: 1;
            transform: translateX(0);
            transition-delay: 0.6s;
        }
        
        body.loaded .footer {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.8s;
        }
        
        body.loaded .draggable-image {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 1s;
        }
        
        /* 手机端提示界面样式 */
        #mobile-notice {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            color: white;
            z-index: 9999;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: clamp(1rem, 5vw, 2rem);
        }
        
        #mobile-notice .notice-content {
            max-width: 90%;
            animation: fadeIn 1s ease-in-out;
        }
        
        #mobile-notice h2 {
            font-size: clamp(1.5rem, 5vw, 2.5rem);
            margin-bottom: clamp(1rem, 4vh, 2rem);
            color: #fff;
        }
        
        #mobile-notice p {
            font-size: clamp(1rem, 3vw, 1.3rem);
            margin-bottom: clamp(1.5rem, 6vh, 3rem);
            color: #ccc;
            line-height: 1.6;
        }
        
        #mobile-notice img {
            max-width: 100%;
            height: auto;
            margin: clamp(1rem, 4vh, 2rem) 0;
            animation: pulse 2s infinite ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* 轮播图样式 */
        .inner-carousel {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        .right-section {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .inner-carousel-slides {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
            /*图片居中显示*/
            align-items: center;
        }
        
        .inner-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        
        .inner-slide-title {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .inner-slide-description {
            margin: 0;
        }