/* ========================================
   MoyvShell 官网 - 宇宙未来科技风格
   ======================================== */

:root {
    --primary-color: #00bfff;
    --secondary-color: #7b2cbf;
    --accent-color: #00ff88;
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: rgba(15, 15, 35, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --gradient-primary: linear-gradient(135deg, #00bfff 0%, #7b2cbf 50%, #00ff88 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a3e 0%, #0f0f2e 100%);
    --glow-primary: 0 0 30px rgba(0, 191, 255, 0.5);
    --glow-secondary: 0 0 30px rgba(123, 44, 191, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 星空背景 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.5"/></svg>') repeat;
    background-size: 200px 200px;
    animation: animateStars 100s linear infinite;
}

#stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="70" r="0.8" fill="white" opacity="0.3"/></svg>') repeat;
    background-size: 300px 300px;
    animation: animateStars 150s linear infinite;
}

#stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="70" cy="20" r="0.5" fill="white" opacity="0.2"/></svg>') repeat;
    background-size: 400px 400px;
    animation: animateStars 200s linear infinite;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

/* 粒子效果 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.logo-img-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin-left: 5%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.badge-icon {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal Preview */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    animation: fadeInRight 1s ease 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.terminal-preview {
    width: 500px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    box-shadow: var(--glow-primary);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca41; }

.terminal-title {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--accent-color);
    font-weight: bold;
}

.command {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.command.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.output {
    margin-left: 0;
}

.success { color: var(--accent-color); }
.info { color: var(--primary-color); }

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: var(--glow-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Screenshots */
.screenshots {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 191, 255, 0.02) 50%, transparent 100%);
}

.screenshot-frame {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    padding: 1rem;
    box-shadow: var(--glow-primary);
}

.mock-terminal {
    background: #0f0f1e;
    border-radius: 8px;
    overflow: hidden;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }

.mock-title {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mock-content {
    display: flex;
    min-height: 300px;
}

.mock-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-right: 1px solid rgba(0, 191, 255, 0.1);
}

.mock-server {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.mock-item {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.mock-item.active {
    background: rgba(0, 191, 255, 0.1);
    color: var(--primary-color);
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mock-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    gap: 0.5rem;
}

.mock-tab {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mock-tab.active {
    background: rgba(0, 191, 255, 0.2);
    color: var(--primary-color);
}

.mock-terminal-content {
    flex: 1;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.mock-terminal-content div {
    margin-bottom: 0.5rem;
}

.cursor {
    animation: blink 1s infinite;
}

/* Download Section */
.download {
    background: linear-gradient(180deg, transparent 0%, rgba(123, 44, 191, 0.05) 50%, transparent 100%);
}

.download-content {
    text-align: center;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    width: 280px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
}

.download-card.primary {
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: var(--glow-primary);
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 255, 0.3);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.download-version {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-download {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    color: var(--bg-darker);
}

.btn-download-secondary {
    display: flex;
    width: 100%;
    justify-content: center;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.coming-soon {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
}

.download-requirements {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.download-requirements h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.download-requirements ul {
    list-style: none;
}

.download-requirements li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.download-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 150px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: var(--glow-primary);
}

.contact-icon {
    font-size: 2rem;
}

.contact-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* MySQL Workbench Ad Section */
.mysql-ad {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.mysql-ad-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.mysql-ad-info {
    flex: 1;
}

.ad-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.ad-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ff88 0%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ad-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.ad-features li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.mysql-ad-visual {
    flex: 1;
}

.ad-preview {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

.ad-preview-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.ad-preview-body {
    display: flex;
    min-height: 200px;
}

.ad-sidebar {
    width: 180px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-right: 1px solid rgba(0, 255, 136, 0.1);
}

.ad-db-icon {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.ad-db-item {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ad-main {
    flex: 1;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.ad-query {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 4px;
}

.ad-result {
    color: var(--accent-color);
}

.ad-row {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mysql-ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mysql-ad-visual {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
