/* ===========================================
   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;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    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-subtitle {
    font-size: 1.25rem;
    color: rgb(255, 255, 255);
    /* text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.5); */
    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(50px, 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-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}


/* ===========================================
   技术架构样式
   =========================================== */
.technology {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.tech-image-container {
    text-align: center;
    padding: 2rem; /* 增加内边距，原来是2rem */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1100px; /* 增加最大宽度，原来是800px */
    margin: 0 auto;
    min-height: 650px; /* 增加最小高度 */
}

.tech-architecture-image {
    width: 100%;
    height: auto;
    min-height: 400px; /* 增加最小高度，原来是300px */
    max-height: 700px; /* 增加最大高度，原来是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-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.app-simple-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.app-simple-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.app-simple-image-container {
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.app-simple-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-simple-card:hover .app-simple-image {
    transform: scale(1.05);
}

.app-simple-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 1.5rem;
    margin: 0;
}

.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);
}

.feature-image-container {
    width: 100%;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.feature-image {
    max-width: 100%;
    max-height: 100%;
    min-width: 240px;
    object-fit: contain;
    cursor: pointer; 
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05);
}

.feature-text {
    text-align: center;
}

.feature-line-1,
.feature-line-2 {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.feature-line-1 {
    margin-bottom: 0.3rem;
}

/* 功能服务描述文字样式 */
.tech-description {
    margin-top: 2rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tech-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
}

/* ===========================================
   响应式布局 
   =========================================== */

/* 平板设备 (768px及以下) */
@media (max-width: 768px) {

    /* 主页横幅 */
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
        padding-top: 60px;
        display: flex; /* 保持flex布局 */
        align-items: center; /* 保持垂直居中 */
        justify-content: center; /* 水平居中 */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 15px;
        width: 100%; /* 确保容器占满宽度 */
        max-width: 100%; /* 防止溢出 */
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        border-right: none;
        animation: fadeInTitle 0.8s ease-out forwards;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* 浮动元素 */
    .floating-elements {
        /* height: 100px;
        order: -1; */
        display: none;
    }

    .element {
        opacity: 0.05;
    }

    /* 功能卡片 */
    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    /* 技术架构 */
    .technology {
        padding: 60px 0;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-item {
        padding: 1.5rem;
    }

    /* 应用场景 */
    .applications {
        padding: 60px 0;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-card {
        flex-direction: column;
    }

    .app-image {
        width: 100%;
        height: 200px;
    }

    .app-content {
        padding: 1.5rem;
    }

    .app-title {
        font-size: 1.3rem;
    }

    .app-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* 应用场景总结 */
    .applications-summary {
        margin-top: 2rem;
        padding: 2rem;
    }

    .summary-content h3 {
        font-size: 1.5rem;
    }

    .summary-content p {
        font-size: 1rem;
    }

    /* 功能服务描述 */
    .tech-description p {
        padding: 1.5rem;
        font-size: 1rem;
    }

    /* 功能图片 */
    .feature-image {
        min-width: 200px;
    }

    .feature-image-container {
        height: 100px;
    }
}

/* 手机设备 (480px及以下) */
@media (max-width: 480px) {

    /* 主页横幅 */
    .hero {
          min-height: 70vh;
        padding-top: 50px;
        display: flex; /* 保持flex布局 */
        align-items: center; /* 保持垂直居中 */
        justify-content: center; /* 水平居中 */
    }

    .hero-container {
        padding: 0 10px;
        gap: 1.5rem;
        width: 100%;
        /* 确保容器占满宽度 */
        max-width: 100%;
        /* 防止溢出 */
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* 浮动元素 */
    .floating-elements {
        display: none;
    }

    .element {
        opacity: 0.03;
    }

    /* 功能卡片 */
    .features {
        padding: 40px 0;
    }

    .features-grid {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* 技术架构 */
    .technology {
        padding: 40px 0;
    }

    .tech-item {
        padding: 1.2rem;
    }

    .tech-item h3 {
        font-size: 1.2rem;
    }

    /* 应用场景 */
    .applications {
        padding: 40px 0;
    }

    .app-content {
        padding: 1.2rem;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .app-description {
        font-size: 0.9rem;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* 应用场景总结 */
    .applications-summary {
        padding: 1.5rem;
    }

    .summary-content h3 {
        font-size: 1.3rem;
    }

    .summary-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* 功能服务描述 */
    .tech-description p {
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    /* 功能图片 */
    .feature-image {
        min-width: 180px;
    }

    .feature-image-container {
        height: 80px;
    }

    .feature-line-1,
    .feature-line-2 {
        font-size: 0.85rem;
    }
}

/* 小屏手机 (375px及以下) */
@media (max-width: 375px) {
    .hero {
        display: flex;
        /* 保持flex布局 */
        align-items: center;
        /* 保持垂直居中 */
        justify-content: center;
        /* 水平居中 */
        min-height: 65vh;
        /* 适当调整高度 */
    }

    .hero-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .floating-elements {
        display: none;
    }
    .feature-card {
        padding: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .app-content {
        padding: 1rem;
    }

    .applications-summary {
        padding: 1rem;
    }

    .summary-content h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .tech-description p {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        /* 横屏时保持全屏高度 */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        /* 横屏时恢复两列布局 */
        gap: 2rem;
        align-items: center;
    }

    .floating-elements {
        display: none;
    }
}