/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(13, 110, 253, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    display: none;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 2;
}
.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-highlight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.hero-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.hero-highlight-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-highlight-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-highlight-item a:hover {
    text-decoration: underline;
}

.hero-highlight-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.35);
}

.hero-cta-group {
    margin-top: 0.35rem;
}

.hero-cta-btn {
    min-width: 140px;
    border-radius: 14px;
    padding: 0.78rem 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
}

.hero-cta-paper {
    color: #ffffff;
    background: linear-gradient(135deg, #1e70ff 0%, #1553cc 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 22px rgba(12, 77, 202, 0.36);
}

.hero-cta-paper:hover,
.hero-cta-paper:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #216dff 0%, #1247b5 100%);
}

.hero-cta-code {
    color: #e9edff;
    background: rgba(16, 24, 54, 0.42);
    border-color: rgba(188, 202, 255, 0.42);
    box-shadow: 0 10px 22px rgba(10, 18, 48, 0.3);
}

.hero-cta-code:hover,
.hero-cta-code:focus {
    color: #ffffff;
    background: rgba(12, 20, 50, 0.62);
    border-color: rgba(213, 221, 255, 0.62);
}

.hero-cta-demo {
    color: #ffffff;
    background: linear-gradient(135deg, #4f8dff 0%, #2f6ff0 100%);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 22px rgba(33, 101, 227, 0.3);
}

.hero-cta-demo:hover,
.hero-cta-demo:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #5b95ff 0%, #356fdf 100%);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
    background: rgba(255,255,255,0.35); /* 半透明白色背景板 */
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(76, 70, 229, 0.18); /* 主色阴影 */
    padding: 2.5rem;
    display: inline-block;
}

.hero-logo-enhanced {
    filter: drop-shadow(0 0 0.5rem #fff) drop-shadow(0 4px 16px rgba(76,70,229,0.18));
    border-radius: 18px;
}

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

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4F46E5 0%, #6C63FF 100%); /* 更深主色渐变 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff !important; /* 强制白色icon */
    box-shadow: 0 4px 16px 0 rgba(76, 70, 229, 0.15); /* 圆底阴影 */
}

.feature-icon i, .feature-icon svg {
    color: #fff !important; /* 强制白色icon */
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5)); /* icon发光效果 */
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Architecture Section */
.architecture-component {
    background: rgba(248, 249, 250, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.architecture-component:hover {
    background: rgba(248, 249, 250, 1);
    transform: translateX(10px);
}

.architecture-component h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.architecture-img-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px 0 rgba(76, 70, 229, 0.13);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 420px;
    margin-bottom: 1.2rem;
}
.architecture-img-card img {
    max-width: 100%;
    max-height: 380px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 2px 12px 0 rgba(76, 70, 229, 0.08);
}

/* Workflow Cards */
.workflow-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.workflow-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.workflow-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.workflow-card ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Demo Cards */
.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.demo-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.demo-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Research Cards */
.research-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.research-card h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.performance-stats {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

.model-list li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(248, 249, 250, 1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Typography */
.display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.display-5 {
    font-weight: 600;
    line-height: 1.3;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-stats {
        margin-bottom: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .workflow-card,
    .demo-card,
    .research-card {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .hero-highlight-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-cta-btn {
        min-width: 122px;
        padding: 0.72rem 1rem;
    }

    .hero-highlight-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Section Transitions */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* Enhanced Card Shadows */
.feature-card,
.workflow-card,
.demo-card,
.research-card,
.contact-card {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
}

/* Hover Effects */
.feature-card:hover,
.workflow-card:hover,
.demo-card:hover,
.research-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Floating Elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
} 

.video-card {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px 0 rgba(76, 70, 229, 0.13);
    overflow: hidden;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}
.video-card iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    border-radius: 16px;
    background: #000;
} 

.video-explanation {
    margin-top: 1.1rem;
    margin-bottom: 2.2rem;
} 

.platform-preview-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px 0 rgba(76, 70, 229, 0.13);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 1.2rem;
}
.platform-preview-card img {
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 2px 12px 0 rgba(76, 70, 229, 0.08);
} 

.user-question {
  border-left: 4px solid #0d6efd;
  background: #f8f9fa;
  padding: 0.75em 1em;
  margin: 1em 0;
  font-style: italic;
  color: #333;
} 

.publication-card {
    border-top: 4px solid #2f6bff;
}

.publication-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.publication-badge.published {
    color: #0b5d34;
    background: rgba(25, 135, 84, 0.15);
}

.publication-badge.venue {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
}

.publication-badge.year {
    color: #7a4b00;
    background: rgba(255, 193, 7, 0.2);
}

.publication-metadata a {
    text-decoration: none;
    font-weight: 600;
}

.publication-metadata a:hover {
    text-decoration: underline;
}

.repo-card {
    border-top: 4px solid #764ba2;
}

.repo-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.repo-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    text-decoration: none;
    color: #1f2d3d;
    font-weight: 600;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f6ff 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.repo-link:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.12);
}

.repo-link i {
    color: #0d6efd;
}

.bibtex-card {
    border-top: 4px solid #00a3b4;
}

.bibtex-block {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bibtex-block code {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.copy-bibtex-btn {
    border: 1px solid rgba(13, 110, 253, 0.25);
    background: #f8fbff;
    color: #0d6efd;
    border-radius: 10px;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.copy-bibtex-btn:hover {
    background: #eaf2ff;
    border-color: rgba(13, 110, 253, 0.45);
}

.copy-bibtex-btn.copied {
    color: #0b5d34;
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.35);
}

@media (max-width: 768px) {
    .bibtex-block {
        font-size: 0.78rem;
    }
}
