/* 基础样式 */
:root {
    --primary-color: #ffbb00;
    --secondary-color: #ff5500;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --grid-color: rgba(180, 180, 180, 0.5);
    --grid-hover: rgba(255, 187, 0, 0.5);
    --header-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme {
    --text-color: #f5f5f5;
    --bg-color: #121212;
    --grid-color: rgba(100, 100, 100, 0.5);
    --grid-hover: rgba(255, 187, 0, 0.5);
    --header-bg: rgba(30, 30, 30, 0.9);
    --card-bg: #1e1e1e;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}
footer {
    text-align: center;
}
footer a{
    color: skyblue;
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--header-bg);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    padding: 5px 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.menu-btn {
    display: none;
}

/* 音频控制样式 */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-progress-container {
    position: relative;
    width: 100px;
    height: 4px;
    background-color: rgba(150, 150, 150, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.audio-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.audio-progress-container:hover .audio-progress-handle {
    display: block;
}

.audio-time {
    font-size: 0.8rem;
    min-width: 40px;
}

/* 网格样式 */
.grid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-cell {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid var(--grid-color);
    transition: all 0.3s ease;
    background-color: transparent;
}

.grid-cell.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    opacity: 0.4;
    z-index: 1;
    transform: scale(1.05) rotate(5deg);
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 主要内容样式 */
.content {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    z-index: 1;
}

.welcome-text {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.studio-name {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.4s;
}

.studio-subtitle {
    font-size: 3rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

.product-info {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
}

.launcher-btn {
    background-color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.launcher-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 187, 0, 0.4);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s, bounce 2s infinite 1.5s;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 可滚动内容区域 */
.scrollable-content {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
}

.scrollable-content > div {
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scrollable-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

/* 项目展示区样式 */
.project-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.learn-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.learn-more:hover {
    transform: scale(1.05);
}

/* 融球效果区域样式 */
.blob-section {
    position: relative;
    overflow: hidden;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.blob-container {
    position: relative;
    height: 300px;
    margin: 50px 0;
}

.blob {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.7;
    transition: transform 0.5s ease;
}

.philosophy-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* 视差效果区域样式 */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-container {
    position: relative;
    height: 300px;
    margin: 50px 0;
}

.parallax-item {
    position: absolute;
    background-color: var(--primary-color);
    opacity: 0.2;
    border-radius: 50%;
    transition: transform 0.3s ease-out;
    pointer-events: none;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* 互动画布区域样式 */
.interactive-canvas-section {
    text-align: center;
}

#interactive-canvas {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 30px auto;
    cursor: crosshair;
    box-shadow: var(--shadow);
}

.canvas-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.canvas-controls button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.canvas-controls button:hover {
    transform: scale(1.05);
}

/* 鼠标跟随效果 */
.mouse-follower {
    position: fixed;
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    z-index: 9999;
    opacity: 0.7;
}

/* 点击扩散动画 */
.click-ripple {
    position: fixed;
    border-radius: 80%;
    pointer-events: none;
    background-color: var(--primary-color);
    opacity: 0.5;
    z-index: 9998;
    animation: rippleEffect 0.6s ease-out forwards;
}

@keyframes rippleEffect {
    from {
        width: 0;
        height: 0;
        opacity: 0.5;
        transform: translate(-50%, -50%);
    }
    to {
        width: 35px;
        height: 35px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* 添加鼠标跟随轨迹效果 */
.mouse-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    opacity: 0;
    z-index: 9998;
    transition: opacity 0.5s ease;
}

/* 融球动画 */
@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(0, 50px) scale(0.9);
    }
    75% {
        transform: translate(-50px, 20px) scale(1.2);
    }
}

/* 音频可视化效果 */
.audio-visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 0 20px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.audio-visualizer.active {
    transform: translateY(0);
}

.audio-bar {
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: height 0.1s ease;
}

/* 增强型音频控制 */
.audio-controls {
    position: relative;
}

.audio-controls:hover .audio-volume-slider {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.audio-volume-slider {
    position: absolute;
    top: 100%;
    right: 0;
    width: 30px;
    height: 100px;
    background-color: var(--header-bg);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.volume-slider {
    width: 4px;
    height: 80px;
    background-color: rgba(150, 150, 150, 0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.volume-handle {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

/* 互动画布增强 */
.canvas-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

/* 滚动动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D卡片效果 */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover .card-content {
    transform: rotateY(180deg);
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
    background-color: var(--primary-color);
    color: #000;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 187, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .audio-visualizer {
        height: 30px;
    }
    
    .audio-volume-slider {
        right: -50px;
    }
    
    .project-card:hover .card-content {
        transform: none;
    }
    
    .card-back {
        display: none;
    }
}