/* 全局样式 */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --bg-light: #ffffff;
    --bg-dark: #0f0f23;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

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

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 2rem;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.try-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid var(--primary);
    background: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.try-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.cta-button {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

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

.hero-note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Mockup Window */
.hero-image {
    position: relative;
}

.mockup-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.mockup-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.window-header {
    background: #f5f5f5;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.window-buttons {
    display: flex;
    gap: 0.5rem;
}

.window-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.window-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.window-content {
    padding: 1.5rem;
    background: #fafafa;
}

.editor-preview {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}

.editor-sidebar {
    width: 180px;
    background: #f7fafc;
    padding: 1rem;
    border-right: 1px solid var(--border);
}

.sidebar-item {
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-item:hover {
    background: #e2e8f0;
}

.sidebar-item.active {
    background: var(--primary);
    color: white;
}

.editor-main {
    flex: 1;
    padding: 1.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.editor-line {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.ghost-text {
    color: #cbd5e0;
    position: relative;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    animation: blink 1s infinite;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--primary);
}

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

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

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* AI Section */
.ai-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.ai-feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.ai-feature-card.reverse {
    direction: rtl;
}

.ai-feature-card.reverse > * {
    direction: ltr;
}

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

.ai-feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ai-feature-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.ai-feature-list {
    list-style: none;
    padding: 0;
}

.ai-feature-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.ai-feature-list strong {
    color: var(--primary);
}

.ai-feature-visual {
    position: relative;
}

/* Chat Mockup */
.chat-mockup {
    background: #f7fafc;
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
}

.chat-message {
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    max-width: 80%;
}

.chat-message.user .message-bubble {
    background: var(--gradient-1);
    color: white;
    margin-left: auto;
    float: right;
    clear: both;
}

.chat-message.ai .message-bubble {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Completion Mockup */
.completion-mockup {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 16px;
    padding: 2rem;
    font-family: 'Monaco', 'Courier New', monospace;
    position: relative;
}

.code-line {
    padding: 0.5rem 0;
    line-height: 1.8;
}

.code-line.ghost {
    color: #666;
    font-style: italic;
}

.completion-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Chart Types */
.chart-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.chart-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
}

.chart-preview {
    background: #f7fafc;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-chart {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* AI Models */
.ai-models {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.models-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.model-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.model-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

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

.model-card h4 {
    margin-bottom: 0.5rem;
}

.model-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Download Section */
.download-section {
    padding: 6rem 0;
    background: white;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.download-card {
    position: relative;
    padding: 3rem 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.download-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, white 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.platform-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.platform-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-download,
.btn-download-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

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

.version-info {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Platform Detection Section */
.platform-detection {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.btn-recommended-download {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-recommended-download::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c, #667eea);
    background-size: 400% 100%;
    border-radius: 15px;
    z-index: -1;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.btn-recommended-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-recommended-download:hover::before {
    animation-duration: 1.5s;
}

.recommend-label {
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-recommended-download svg {
    flex-shrink: 0;
}

/* Update Section */
.update-section {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 24px;
    text-align: center;
}

.update-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.update-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.update-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.update-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 12px;
    font-weight: 500;
}

.check-icon {
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Documentation Section */
.docs-section {
    padding: 6rem 0;
    background: #f7fafc;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.doc-card {
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.doc-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
}

.doc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.doc-links {
    list-style: none;
    padding: 0;
}

.doc-links li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.doc-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.doc-links li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

.doc-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    font-size: 1rem;
    line-height: 1.5;
}

.doc-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: #1a202c;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #a0aec0;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #a0aec0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content,
    .ai-feature-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doc-card {
        padding: 2rem;
    }
    
    .doc-icon {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid,
    .download-cards,
    .models-grid,
    .docs-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .docs-grid {
        gap: 1.5rem;
    }
    
    .doc-card {
        padding: 1.5rem;
    }
    
    .doc-icon {
        font-size: 2.5rem;
        padding: 0.75rem;
    }
    
    .doc-card h3 {
        font-size: 1.3rem;
    }
    
    .doc-links li {
        margin-bottom: 0.75rem;
        padding-left: 1.2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.ai-feature-card,
.download-card,
.doc-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Markdown 查看器模态窗口 */
.markdown-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.markdown-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.markdown-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.markdown-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.markdown-modal-back {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.markdown-modal-back:hover {
    background: #f0f4ff;
    color: var(--primary-dark);
}

.markdown-modal-back svg {
    transition: transform 0.2s ease;
}

.markdown-modal-back:hover svg {
    transform: translateX(-3px);
}

.markdown-modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.markdown-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.markdown-modal-close:hover {
    background: #f7fafc;
    color: var(--text-primary);
}

.markdown-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.markdown-modal-body .loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.markdown-modal-body .error {
    text-align: center;
    padding: 3rem;
    color: #e53e3e;
    font-size: 1.1rem;
}

/* Markdown 内容样式 */
.markdown-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.markdown-content h1 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.6rem;
    margin: 1.3rem 0 0.8rem;
    color: var(--text-primary);
}

.markdown-content h3 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.6rem;
    color: var(--text-primary);
}

.markdown-content h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
}

.markdown-content p {
    margin: 0.8rem 0;
    line-height: 1.8;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0.8rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.3rem 0;
}

.markdown-content code {
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.markdown-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.markdown-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.markdown-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.markdown-content table th {
    background: #f7fafc;
    font-weight: 600;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}
