/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --accent-color: #6610f2;
    --wpf-color: #512bd4;
    --blazor-color: #5c2d91;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 英雄区 */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--light-color);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 英雄区GIF容器 */
.hero-gif-container {
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* 英雄区GIF */
.hero-gif {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 1;
}

/* 懒加载 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a4a6a' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 技术栈展示 */
.tech-stack-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.tech-badge:nth-child(1) { animation-delay: 0.1s; }
.tech-badge:nth-child(2) { animation-delay: 0.2s; }
.tech-badge:nth-child(3) { animation-delay: 0.3s; }
.tech-badge:nth-child(4) { animation-delay: 0.4s; }
.tech-badge:nth-child(5) { animation-delay: 0.5s; }
.tech-badge:nth-child(6) { animation-delay: 0.6s; }

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-badge i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tech-badge span {
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* 通用章节样式 */
section {
    padding: 80px 0;
}

.py-12 {
    padding: 80px 0;
}

.mb-8 {
    margin-bottom: 60px;
}

/* 标题样式 */
h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    border-radius: 2px;
}

/* 项目简介 */
.intro-section {
    background-color: white;
}

.project-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.core-values {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.value-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* 架构设计 */
.architecture-section {
    background-color: var(--light-color);
}

.tech-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.tech-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

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

.tech-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.tech-list li:last-child {
    border-bottom: none;
}

.arch-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.arch-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #4a1fb8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
}

.arch-card ul {
    padding-left: 20px;
}

.arch-card li {
    margin-bottom: 10px;
    color: var(--gray-color);
}

/* 创新点卡片 */
.innovation-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.innovation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.innovation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.innovation-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-light);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.innovation-card h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* 核心功能 */
.features-section {
    background-color: white;
}

.category-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
}

.feature-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: white;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--wpf-color), #3d1fb8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-icon.blazor-icon {
    background: linear-gradient(135deg, var(--blazor-color), #4a1f8c);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* 项目优势 */
.advantages-section {
    background-color: var(--light-color);
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #218838);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.unique-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.unique-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.unique-card > i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.unique-card h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* 行动召唤 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section h2::after {
    background: rgba(255, 255, 255, 0.5);
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.footer h3,
.footer h4 {
    color: white;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
}

.contact-info a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info-section h5 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 10px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--gray-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

.btn-outline-light {
    border: 2px solid white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

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

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

/* 淡入动画 */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* 卡片动画 */
.card-animate {
    animation: cardAnimate 0.5s ease-out;
}

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

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* 响应式设计 */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .tech-stack-showcase {
        justify-content: center;
    }
    
    .tech-badge {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    

}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .tech-badge {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .tech-badge i {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .py-12 {
        padding: 60px 0;
    }
    
    .mb-8 {
        margin-bottom: 40px;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .demo-card,
    .advantage-card,
    .scenario-card,
    .project-card,
    .tech-card,
    .arch-card,
    .innovation-card {
        margin-bottom: 20px;
    }
    
    .unique-card {
        flex-direction: column;
        text-align: center;
    }
    
    .unique-card > i {
        margin: 0 auto;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group .btn {
        margin: 0 !important;
    }
    

}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .tech-stack-showcase {
        gap: 10px;
    }
    
    .tech-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .project-icon,
    .feature-icon,
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .innovation-number {
        font-size: 2rem;
    }
    
    .value-item {
        padding: 10px;
    }
    
    .value-item i {
        font-size: 1.5rem;
    }
    
    .value-item span {
        font-size: 0.8rem;
    }
    

}

/* 打印样式 */
@media print {
    .navbar,
    .hero-section,
    .cta-section,
    .footer,
    .loading-overlay {
        display: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --dark-color: #000000;
    }
    
    .feature-card,
    .advantage-card,
    .tech-card,
    .arch-card {
        border: 2px solid var(--dark-color);
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image {
        animation: none;
    }
    
    .tech-badge {
        animation: none;
        opacity: 1;
    }
}