/* ===========================================
   VTS 智能仿真平台 - 首页专用样式
   包含：主页横幅、功能卡片、技术架构、应用场景等
   =========================================== */

/* ===========================================
   主页横幅样式
   =========================================== */
.hero {
    min-height: 100vh;
    background: url('../images/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: typewriter 2s steps(20) 0.5s forwards, 
               fadeInTitle 0.5s ease-out 0.5s forwards,
               blink 1.5s steps(1) 2.5s 3;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #3498db;
}

.hero-title .vts-brand {
    font-size: 1.1em;
    margin-right: 1rem;
    text-shadow: 2px 2px 4px rgba(52, 152, 219, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 3.5s forwards;
}

.highlight {
    color: #3498db;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* 动画定义 */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInTitle {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blink {
    0% { border-color: #3498db; }
    50% { border-color: transparent; }
    100% { border-color: #3498db; }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   浮动元素动画
   =========================================== */
.floating-elements {
    position: relative;
    width: 100%;
    height: 400px;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ===========================================
   核心功能样式
   =========================================== */
.features {
    padding: 100px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f2f6;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 功能图标样式 */
.icon-simulation,
.icon-ai,
.icon-test,
.icon-analytics {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.icon-simulation::before {
    content: '⚙️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.icon-ai::before {
    content: '🤖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.icon-test::before {
    content: '🔬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.icon-analytics::before {
    content: '📊';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

/* ===========================================
   技术架构样式
   =========================================== */
.technology {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.tech-image-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.tech-architecture-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tech-architecture-image:hover {
    transform: scale(1.02);
}

/* ===========================================
   应用场景样式
   =========================================== */
.applications {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 图片容器 */
.app-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.app-card:hover .app-image {
    transform: scale(1.1);
}

/* 图标覆盖层 - 默认显示 */
.app-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.app-icon {
    font-size: 4rem;
    /* animation: float 3s ease-in-out infinite; */
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 悬停覆盖层 - 悬停时显示 */
.app-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-card:hover .app-icon-overlay {
    opacity: 0;
}

.app-card:hover .app-hover-overlay {
    opacity: 1;
}

.view-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.app-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* 内容区域 */
.app-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.app-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.app-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f4;
    margin-top: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

/* 应用场景总结 */
.applications-summary {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.summary-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.summary-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.modal-caption h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .applications {
        padding: 60px 0;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .app-image-wrapper {
        height: 200px;
    }
    
    .app-content {
        padding: 1.5rem;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .applications-summary {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .summary-content h3 {
        font-size: 1.6rem;
    }
    
    .summary-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .app-content {
        padding: 1rem;
    }
    
    .app-icon {
        font-size: 3rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}