/* ========================================
   Index Page Specific Styles
   ======================================== */

/* Hero Banner with Canvas */
.hero-banner {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-4xl) 0;
}

.hero-content {
    text-align: left;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-3xl);
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-actions .btn {
    height: 50px;
    line-height: 50px;
    color: #fff;
    border-radius: 4px;
}

.ha-demo {
    border: 1px solid #fff;
}

/* Button Text Style */
.btn-text {
    color: #fff;
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: color 0.3s ease;
}

/* Trusted Companies Section */
.trusted-section {
    background: #f8fafc;
    padding: var(--spacing-4xl) 0;
}

.trusted-section .section-title {
    color: #1a1a2e;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-3xl);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.company-logo {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: var(--spacing-xl) var(--spacing-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.company-logo:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Comprehensive Data Section */
.comprehensive-data-section {
    background: #ffffff;
    padding: var(--spacing-4xl) 0;
}

.comprehensive-data-section .section-title {
    color: #1a1a2e;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-3xl);
}

.comprehensive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.comprehensive-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.comprehensive-card:hover {
    transform: translateY(-8px);
}

.comprehensive-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f8fafc;
}

.comprehensive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comprehensive-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: var(--spacing-sm);
}

.comprehensive-description {
    font-size: var(--font-size-sm);
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Our Section */
.why-choose-section {
    background: #ffffff;
    padding: var(--spacing-4xl) 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.why-choose-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.why-choose-features {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-xl));
    padding-right: var(--spacing-2xl);
    border-right: 1px solid #e5e7eb;
}

.why-choose-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.why-choose-description {
    font-size: var(--font-size-sm);
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: var(--spacing-3xl);
}

/* Tab列表样式 */
.feature-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 单个Tab样式 - 简洁风格 */
.feature-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feature-tab:hover {
    background: rgba(37, 99, 235, 0.04);
}

/* 选中状态 - 蓝色左边框 */
.feature-tab.active {
    background: transparent;
    border-left-color: #2563eb;
}

/* Tab图标 */
.feature-tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-tab-icon svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    transition: stroke 0.3s ease;
}

/* 选中状态图标变蓝 */
.feature-tab.active .feature-tab-icon svg {
    stroke: #2563eb;
}

/* Tab标题 */
.feature-tab-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #374151;
    margin: 0;
    transition: color 0.3s ease;
}

/* 选中状态标题变蓝 */
.feature-tab.active .feature-tab-title {
    color: #2563eb;
    font-weight: 600;
}

/* 右侧内容区域 - 简洁风格 */
.why-choose-details {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 var(--spacing-2xl);
    min-height: 400px;
}

/* 内容容器动画 */
.detail-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 详情项样式 */
.detail-item {
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.detail-item:last-child {
    margin-bottom: 0;
}

/* 入场动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: var(--spacing-xs);
}

.detail-item p {
    font-size: var(--font-size-sm);
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* 图片区域 */
.detail-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.4s;
}

.detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* News/Insights Section */
.news-section {
    background: #f8fafc;
    padding: var(--spacing-4xl) 0;
    overflow: hidden;
}

.news-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

/* 左侧标题区域 */
.news-header {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-xl));
}

.news-header .section-title {
    color: #333;
    font-size: var(--font-size-3xl);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.news-header .section-subtitle {
    color: #555;
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.news-header .btn-primary {
    display: inline-block;
}

/* 右侧新闻滚动区域 - 单行横向滚动 */
.news-scroll-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.news-scroll-container {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: hidden;
    /* 隐藏原生滚动条，由JS控制滚动 */
    padding: var(--spacing-md) 0;
    width: 100%;
}

/* 新闻卡片样式 */
.news-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* 计算宽度：(100% - gap) / 2 */
    width: calc(43% - 16px);
    min-height: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

/* 引号图标样式 - 双引号设计 */
.news-card .quote-icon {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -4px;
}

.news-text {
    font-size: var(--font-size-lg);
    color: #333;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.news-author {
    margin-top: var(--spacing-md);
}

.news-author p {
    color: #333;
}

.news-author .author-name {
    font-size: var(--font-size-sm);
    color: #555;
    margin: 0;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #f0f0f0;
    margin-top: var(--spacing-sm);
}

.news-date {
    font-size: var(--font-size-sm);
    color: #555;
}

/* Read More 链接样式 */
.news-link {
    font-size: var(--font-size-sm);
    color: #2563eb;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* 链接文字下划线效果 */
.news-link .link-text {
    /* border-bottom: 1px solid #2563eb; */
    padding-bottom: 1px;
}

.news-link:hover {
    color: #1d4ed8;
}

.news-link:hover .link-text {
    border-bottom-color: #1d4ed8;
}

.news-link .arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.news-link:hover .arrow {
    transform: translateX(4px);
}