* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #fd79a8;
    --accent-color: #fdcb6e;
    --dark-bg: #0d1117;
    --darker-bg: #010409;
    --card-bg: #161b22;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #656d76;
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-secondary: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景星空画布 */
#starfield-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 35%, #0f0f23 100%);
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.3);
    backdrop-filter: blur(15px) brightness(1.1) contrast(1.2);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(240, 246, 252, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.download-btn {
    background: var(--gradient-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white !important;
    font-weight: 600;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.login-btn {
    background: var(--gradient-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white !important;
    font-weight: 600;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    padding: 120px 0 80px;
    background: transparent;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 2rem;
}

/* 3D Logo 容器样式 */
.logo-3d-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.logo-container {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite, autoRotate 20s linear infinite;
}

.logo-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 内部圆角装饰层 */
.logo-face::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.logo-face img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

/* 确保立方体面之间无缝连接 - 移除，因为现在面本身没有圆角 */

/* 立方体的6个面 */
.logo-face.front {
    transform: translateZ(150px);
}

.logo-face.front::after {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(162, 155, 254, 0.25));
    border-color: rgba(108, 92, 231, 0.3);
}

.logo-face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.logo-face.back::after {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.25), rgba(255, 118, 117, 0.25));
    border-color: rgba(253, 121, 168, 0.3);
}

.logo-face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.logo-face.right::after {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.25), rgba(255, 179, 71, 0.25));
    border-color: rgba(253, 203, 110, 0.3);
}

.logo-face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.logo-face.left::after {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.25), rgba(72, 187, 120, 0.25));
    border-color: rgba(116, 185, 255, 0.3);
}

.logo-face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.logo-face.top::after {
    background: linear-gradient(135deg, rgba(167, 243, 208, 0.25), rgba(187, 222, 251, 0.25));
    border-color: rgba(167, 243, 208, 0.3);
}

.logo-face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

.logo-face.bottom::after {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.25), rgba(250, 208, 196, 0.25));
    border-color: rgba(255, 154, 158, 0.3);
}

/* 立方体中心浮动logo */
.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.center-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 30px rgba(74, 144, 226, 0.9))
        drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.6))
        drop-shadow(12px 12px 25px rgba(0, 0, 0, 0.4))
        drop-shadow(16px 16px 30px rgba(0, 0, 0, 0.2))
        drop-shadow(-4px -4px 15px rgba(255, 255, 255, 0.4))
        drop-shadow(-8px -8px 20px rgba(255, 255, 255, 0.2));
    animation: float 4s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
}

/* 创建多层3D厚度效果 */
.center-logo::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    background: url('logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.4;
    filter: blur(2px) brightness(0.3) contrast(1.2);
    z-index: -1;
    transform: translateZ(-15px);
}

.center-logo::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: url('logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.25;
    filter: blur(3px) brightness(0.2) contrast(1.5);
    z-index: -2;
    transform: translateZ(-25px);
}

/* 中心logo浮动动画 - 增强3D厚度感 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        filter: 
            drop-shadow(0 0 30px rgba(74, 144, 226, 0.9))
            drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.6))
            drop-shadow(12px 12px 25px rgba(0, 0, 0, 0.4))
            drop-shadow(16px 16px 30px rgba(0, 0, 0, 0.2))
            drop-shadow(-4px -4px 15px rgba(255, 255, 255, 0.4))
            drop-shadow(-8px -8px 20px rgba(255, 255, 255, 0.2));
    }
    16.66% {
        transform: translateY(-5px) scale(1.03) rotateX(8deg) rotateY(15deg) rotateZ(2deg);
        filter: 
            drop-shadow(0 0 35px rgba(74, 144, 226, 1))
            drop-shadow(15px 5px 25px rgba(0, 0, 0, 0.7))
            drop-shadow(20px 8px 30px rgba(0, 0, 0, 0.5))
            drop-shadow(25px 12px 35px rgba(0, 0, 0, 0.3))
            drop-shadow(-6px -6px 18px rgba(255, 255, 255, 0.5))
            drop-shadow(-10px -10px 25px rgba(255, 255, 255, 0.3));
    }
    33.33% {
        transform: translateY(-12px) scale(1.06) rotateX(-5deg) rotateY(30deg) rotateZ(-3deg);
        filter: 
            drop-shadow(0 0 40px rgba(74, 144, 226, 1))
            drop-shadow(25px -2px 30px rgba(0, 0, 0, 0.8))
            drop-shadow(30px 2px 35px rgba(0, 0, 0, 0.6))
            drop-shadow(35px 8px 40px rgba(0, 0, 0, 0.4))
            drop-shadow(-8px 2px 20px rgba(255, 255, 255, 0.6))
            drop-shadow(-12px -2px 28px rgba(255, 255, 255, 0.4));
    }
    50% {
        transform: translateY(-18px) scale(1.1) rotateX(12deg) rotateY(45deg) rotateZ(5deg);
        filter: 
            drop-shadow(0 0 45px rgba(74, 144, 226, 1))
            drop-shadow(30px 15px 35px rgba(0, 0, 0, 0.9))
            drop-shadow(35px 20px 40px rgba(0, 0, 0, 0.7))
            drop-shadow(40px 25px 45px rgba(0, 0, 0, 0.5))
            drop-shadow(-10px -8px 25px rgba(255, 255, 255, 0.7))
            drop-shadow(-15px -12px 32px rgba(255, 255, 255, 0.5));
    }
    66.66% {
        transform: translateY(-12px) scale(1.06) rotateX(-8deg) rotateY(30deg) rotateZ(-2deg);
        filter: 
            drop-shadow(0 0 40px rgba(74, 144, 226, 1))
            drop-shadow(22px -5px 30px rgba(0, 0, 0, 0.8))
            drop-shadow(28px -2px 35px rgba(0, 0, 0, 0.6))
            drop-shadow(32px 5px 40px rgba(0, 0, 0, 0.4))
            drop-shadow(-6px 5px 20px rgba(255, 255, 255, 0.6))
            drop-shadow(-10px 2px 28px rgba(255, 255, 255, 0.4));
    }
    83.33% {
        transform: translateY(-5px) scale(1.03) rotateX(5deg) rotateY(15deg) rotateZ(1deg);
        filter: 
            drop-shadow(0 0 35px rgba(74, 144, 226, 1))
            drop-shadow(12px 8px 25px rgba(0, 0, 0, 0.7))
            drop-shadow(18px 12px 30px rgba(0, 0, 0, 0.5))
            drop-shadow(22px 15px 35px rgba(0, 0, 0, 0.3))
            drop-shadow(-5px -5px 18px rgba(255, 255, 255, 0.5))
            drop-shadow(-8px -8px 25px rgba(255, 255, 255, 0.3));
    }
}

@keyframes autoRotate {
    from { transform: rotateY(0deg) rotateX(0deg); }
    to { transform: rotateY(360deg) rotateX(360deg); }
}

/* 悬停控制 */
.logo-container:hover {
    animation-play-state: paused;
}

.logo-container.manual-control {
    animation: float 6s ease-in-out infinite;
}

/* 控制按钮样式 */
.logo-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-control-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.logo-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.features {
    padding: 80px 0;
    background: transparent;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(48, 54, 61, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(22, 27, 34, 0.85);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.2), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.showcase {
    padding: 80px 0;
    background: transparent;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.showcase-item {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(48, 54, 61, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.showcase-item:hover {
    transform: translateY(-5px);
    background: rgba(22, 27, 34, 0.85);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.showcase-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.showcase-item h3 {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.showcase-item p {
    padding: 0 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-section {
    padding: 80px 0;
    background: transparent;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(48, 54, 61, 0.5);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-card:hover {
    transform: translateY(-5px);
    background: rgba(22, 27, 34, 0.85);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.download-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-card code {
    background: rgba(13, 17, 23, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: block;
    margin: 1rem 0;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border: 1px solid rgba(48, 54, 61, 0.3);
}

.footer {
    background: transparent;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 17, 23, 0.85);
        backdrop-filter: blur(20px) brightness(0.8);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(108, 92, 231, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* 3D Logo 响应式样式 */
    .logo-container {
        width: 250px;
        height: 250px;
    }
    
    .logo-face {
        width: 250px;
        height: 250px;
    }
    
    .logo-face img {
        width: 150px;
        height: 150px;
    }
    
    .logo-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .logo-control-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .features-container,
    .showcase-container,
    .download-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero-canvas {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 移动端导航菜单增强 */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex !important;
        animation: slideInFromTop 0.3s ease-out;
    }
    
    @keyframes slideInFromTop {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 导航链接活动状态 */
.nav-menu a.active {
    color: var(--accent-color) !important;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border-radius: 1px;
}

/* 页面切换动画样式 */
.page-transition-overlay {
    backdrop-filter: blur(10px);
}

/* 响应式导航增强 */
@media (max-width: 768px) {
    .nav-menu a.active::after {
        display: none;
    }
    
    .nav-menu a.active {
        background: rgba(74, 144, 226, 0.1);
        border-radius: 5px;
    }
}

/* App下载弹窗样式 */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.qr-code-container {
    text-align: center;
}

.qr-code {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto 20px;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-pattern {
    width: 120px;
    height: 120px;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    opacity: 0.3;
    border-radius: 4px;
}

.download-instruction {
    color: white;
    margin: 0 0 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.download-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-icon {
    font-size: 1.2rem;
}

.download-link span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
        padding: 15px;
    }
    
    .qr-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .qr-pattern {
        width: 100px;
        height: 100px;
    }
    
    .download-links {
        flex-direction: column;
        align-items: center;
    }
    
    .download-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* 个人中心按钮样式 */
.profile-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.1);
    border: 2px solid rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: rgba(108, 92, 231, 0.5);
    transform: scale(1.1);
}

/* 浮动上传按钮 */
.floating-upload-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.floating-upload-btn svg {
    width: 28px;
    height: 28px;
}

.floating-upload-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

.floating-upload-btn:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .floating-upload-btn {
        bottom: 30px;
        right: 30px;
        width: 56px;
        height: 56px;
    }
    
    .floating-upload-btn svg {
        width: 24px;
        height: 24px;
    }
}
