/* 主要样式表 */
:root {
    /* 颜色变量 */
    --deep-space-black: #121212;
    --stellar-blue: #1E3A8A;
    --echo-purple: #8B5CF6;
    --neon-cyan: #06B6D4;
    --pulse-pink: #EC4899;
    --quantum-green: #10B981;
    --moonlight-white: #F9FAFB;
    --stardust-silver: #9CA3AF;
    --dark-matter: #374151;
    
    /* 渐变 */
    --cyan-purple-gradient: linear-gradient(90deg, #06B6D4, #8B5CF6);
    --purple-pink-gradient: linear-gradient(135deg, #8B5CF6, #EC4899);
    --space-gradient: linear-gradient(180deg, #121212, #1E3A8A);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'SF Pro Display', sans-serif;
    background-color: var(--deep-space-black);
    color: var(--moonlight-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--echo-purple);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-cyan);
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(156, 163, 175, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--cyan-purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 10px;
}

.logo-wave {
    display: flex;
    align-items: flex-end;
    height: 20px;
}

.logo-wave span {
    display: inline-block;
    width: 3px;
    height: 10px;
    margin: 0 2px;
    background-color: var(--echo-purple);
    border-radius: 1px;
    animation: wave 1.5s infinite;
}

.logo-wave span:nth-child(2) {
    animation-delay: 0.2s;
    height: 13px;
}

.logo-wave span:nth-child(3) {
    animation-delay: 0.4s;
    height: 16px;
}

.logo-wave span:nth-child(4) {
    animation-delay: 0.6s;
    height: 13px;
}

.logo-wave span:nth-child(5) {
    animation-delay: 0.8s;
    height: 10px;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--stardust-silver);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--moonlight-white);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--stardust-silver);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 英雄区 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: var(--space-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="80"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--cyan-purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--stardust-silver);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--echo-purple);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #9d74f7;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.secondary-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--echo-purple);
    border: 2px solid var(--echo-purple);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.secondary-button:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

/* 特点部分 */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--echo-purple);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--stardust-silver);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(55, 65, 81, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(156, 163, 175, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--echo-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-description {
    color: var(--stardust-silver);
}

/* Echo助手部分 */
.echo-section {
    background: var(--space-gradient);
    position: relative;
    overflow: hidden;
}

.echo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="80"/></svg>');
    opacity: 0.3;
}

.echo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.echo-info {
    flex: 1;
    padding-right: 50px;
}

.echo-avatar {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.echo-avatar::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border-radius: 50%;
}

.echo-avatar::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
    border-radius: 50%;
}

.echo-core {
    width: 100px;
    height: 100px;
    background: var(--echo-purple);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.echo-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
}

.echo-wave span {
    display: inline-block;
    width: 4px;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: height 0.5s ease;
}

.echo-features {
    margin-top: 40px;
}

.echo-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.echo-feature-icon {
    width: 30px;
    height: 30px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.echo-feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.echo-feature-text p {
    color: var(--stardust-silver);
    font-size: 0.95rem;
}

/* 屏幕展示部分 */
.screens-section {
    background-color: var(--deep-space-black);
}

.screen-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.screen-link {
    padding: 10px 20px;
    margin: 0 10px 10px;
    background: rgba(55, 65, 81, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--stardust-silver);
}

.screen-link:hover {
    background: rgba(55, 65, 81, 0.4);
    color: var(--moonlight-white);
}

.screen-link.active {
    background: var(--echo-purple);
    color: white;
}

.screen-display {
    text-align: center;
}

.screen-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--neon-cyan);
}

.screen-frame {
    width: 375px;
    height: 812px;
    background: var(--deep-space-black);
    border-radius: 40px;
    margin: 0 auto;
    padding: 10px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.screen-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 30px;
}

/* 设计理念部分 */
.design-section {
    background: var(--deep-space-black);
}

.design-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.principle-card {
    background: rgba(30, 58, 138, 0.2);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-10px);
}

.principle-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.2);
    margin-bottom: 15px;
}

.principle-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--neon-cyan);
}

.principle-description {
    color: var(--stardust-silver);
}

/* 文档链接部分 */
.docs-section {
    background: var(--space-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.docs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="20"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="40"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="60"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="20" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="40" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="60" y="80"/><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="80" y="80"/></svg>');
    opacity: 0.3;
}

.docs-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.doc-card {
    background: rgba(55, 65, 81, 0.2);
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(156, 163, 175, 0.1);
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: var(--neon-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.doc-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--moonlight-white);
}

.doc-description {
    color: var(--stardust-silver);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background-color: rgba(18, 18, 18, 0.9);
    padding: 60px 5% 20px;
    border-top: 1px solid rgba(156, 163, 175, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 30px;
    flex: 1;
    min-width: 250px;
}

.footer-logo p {
    color: var(--stardust-silver);
    margin-top: 10px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    margin-left: 60px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--moonlight-white);
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--stardust-silver);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--echo-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(156, 163, 175, 0.1);
    color: var(--stardust-silver);
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .echo-container {
        flex-direction: column;
    }
    
    .echo-info {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .echo-features {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .echo-feature {
        text-align: left;
    }
    
    .echo-avatar {
        width: 300px;
        height: 300px;
    }
    
    .echo-avatar::before {
        width: 220px;
        height: 220px;
    }
    
    .echo-avatar::after {
        width: 140px;
        height: 140px;
    }
    
    .echo-core {
        width: 70px;
        height: 70px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        height: calc(100vh - 70px);
        width: 50%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        z-index: 1000;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .burger {
        display: block;
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-column {
        margin-left: 30px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button, .secondary-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .section {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .echo-avatar {
        width: 250px;
        height: 250px;
    }
    
    .echo-avatar::before {
        width: 180px;
        height: 180px;
    }
    
    .echo-avatar::after {
        width: 120px;
        height: 120px;
    }
    
    .echo-core {
        width: 60px;
        height: 60px;
    }
    
    .nav-links {
        width: 70%;
    }
    
    .footer-column {
        margin-left: 0;
        width: 100%;
    }
}
