/* home.css — 首页专属样式（已整合至index.php引用） */

/* Hero */
.hero {
    background: linear-gradient(105deg, #f8fcff 0%, #eef4fa 100%);
    padding: 50px 0 70px;
    border-bottom: 1px solid rgba(30, 90, 125, 0.1);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content { flex: 1.2; min-width: 260px; }
.hero-content h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 18px; color: #0c2e40; }
.hero-content p { font-size: 1rem; color: #334155; margin-bottom: 22px; max-width: 560px; }

.hero-badge {
    background: rgba(30, 90, 125, 0.1);
    display: inline-block;
    padding: 4px 13px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e5a7d;
    margin-bottom: 18px;
}

.hero-stats { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.stat-item h3 { font-size: 1.7rem; font-weight: 800; color: #1e5a7d; }
.stat-item span { font-size: 0.8rem; color: #5a7a89; }

.hero-visual { flex: 0.9; min-width: 300px; }

/* Dashboard 卡片布局 */
.hero-dashboard {
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-dash-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 20px 50px -12px rgba(30, 90, 125, 0.15), 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(30, 107, 146, 0.08);
    padding: 22px;
}
.hero-dash-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f2b3d;
}
.hero-dash-dots { display: flex; gap: 5px; }
.hero-dash-dots span {
    width: 8px; height: 8px; border-radius: 50%; display: block;
}
.hero-dash-dots span:nth-child(1) { background: #ff6b6b; }
.hero-dash-dots span:nth-child(2) { background: #feca57; }
.hero-dash-dots span:nth-child(3) { background: #1dd1a1; }

.hero-dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 80px;
    padding: 10px;
    background: linear-gradient(180deg, #f0f7ff, #ffffff);
    border-radius: 14px;
    border: 1px solid #e2edf3;
    margin-bottom: 14px;
}
.hero-dash-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #5ab0d6, #1e6b92);
    opacity: 0.9;
    animation: chartGrow 1.6s ease-out forwards;
    transform-origin: bottom;
}
.hero-dash-bar:nth-child(2) { animation-delay: 0.08s; }
.hero-dash-bar:nth-child(3) { animation-delay: 0.16s; }
.hero-dash-bar:nth-child(4) { animation-delay: 0.24s; }
.hero-dash-bar:nth-child(5) { animation-delay: 0.32s; }
.hero-dash-bar:nth-child(6) { animation-delay: 0.40s; }
.hero-dash-bar:nth-child(7) { animation-delay: 0.48s; }
.hero-dash-bar:nth-child(8) { animation-delay: 0.56s; }

.hero-dash-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.hero-dash-metric {
    background: #f0f7ff;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
}
.hero-dash-metric strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e6b92;
    margin-bottom: 3px;
}
.hero-dash-metric span {
    font-size: 0.72rem;
    color: #5a7a89;
}

/* 能力标签 */
.hero-dash-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-dash-pill {
    background: #fff;
    border: 1px solid #e2edf3;
    border-radius: 40px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e5a7d;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.hero-dash-pill i {
    font-size: 0.9rem;
    color: #1e6b92;
}

@keyframes chartGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.track-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.track-tag {
    background: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #dceaf2;
    color: #1e5a7d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 产品矩阵 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 24px;
}
.product-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px;
    transition: all 0.25s;
    border: 1px solid #eef2f6;
    box-shadow: 0 6px 18px rgba(0,0,0,0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); border-color: #cbdde9; box-shadow: 0 20px 30px -12px rgba(0,32,64,0.12); }
.product-icon { font-size: 2.2rem; margin-bottom: 18px; color: #1e6b92; }
.product-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: #0f2b3d; }
.product-card p { color: #475569; font-size: 0.9rem; flex: 1; margin-bottom: 16px; }

/* AI展区 */
.ai-showcase {
    background: linear-gradient(120deg, #f0f7fe 0%, #e9f2f9 100%);
    border-radius: 40px;
    padding: 40px 32px;
    margin-top: 24px;
}
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin: 28px 0 20px;
}
.ai-card {
    background: white;
    border-radius: 28px;
    padding: 26px 22px;
    transition: 0.2s;
    border: 1px solid #e2edf3;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -10px rgba(0,0,0,0.08); }
.ai-icon { font-size: 2rem; margin-bottom: 16px; color: #1f7b9e; }
.ai-badge { display: inline-block; background: #e1f0f9; border-radius: 40px; padding: 3px 10px; font-size: 0.68rem; font-weight: 600; color: #145c7a; margin-bottom: 12px; width: fit-content; }
.ai-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: #0f2b3d; }
.ai-card p { color: #475569; font-size: 0.88rem; flex: 1; }

/* 行业洞察 */
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; }
.insight-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
    height: 100%;
}
.insight-card:hover { transform: translateY(-4px); border-color: #c7dde9; box-shadow: 0 14px 28px -12px rgba(0,0,0,0.08); }
.insight-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid #e9f0f5; padding-bottom: 14px; }
.insight-header i { font-size: 1.8rem; color: #1e6b92; }
.insight-header h3 { font-size: 1.4rem; font-weight: 700; color: #0f2b3d; }
.insight-list { list-style: none; }
.insight-list li { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed #e2edf3; }
.insight-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; color: #1e293b; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.news-title a { color: #1e293b; text-decoration: none; transition: color 0.2s; }
.news-title a:hover { color: #1e6b92; }
.news-date { font-size: 0.68rem; color: #7e8b9c; font-weight: normal; white-space: nowrap; }
.news-desc { font-size: 0.84rem; color: #566573; line-height: 1.5; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 500; color: #1e6b92; text-decoration: none; font-size: 0.85rem; }
.more-link i { transition: transform 0.2s; }
.more-link:hover i { transform: translateX(4px); }

/* 核心优势 */
.advantage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin: 36px 0; }
.advantage-item { text-align: center; padding: 24px 16px; background: #fefefe; border-radius: 24px; border: 1px solid #eef2f6; transition: 0.2s; }
.advantage-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(0,0,0,0.08); border-color: #c4dbe9; }
.advantage-icon { background: #eef3fc; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.8rem; color: #1e6b92; }
.advantage-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #0f2b3d; }
.advantage-item p { font-size: 0.85rem; color: #5a7a89; }

/* CTA banner */
.cta-banner { background: linear-gradient(120deg, #eef3fa 0%, #ddedf5 100%); border-radius: 36px; padding: 40px 32px; text-align: center; }
.cta-banner h3 { font-size: 1.6rem; font-weight: 800; color: #0f2b3d; }
.cta-banner p { margin: 16px auto; max-width: 660px; color: #475569; font-size: 0.97rem; line-height: 1.7; }

/* 响应式 */
@media (max-width: 900px) {
    .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-stats { justify-content: center; }
    .track-tags { justify-content: center; }
    .hero-dashboard { max-width: 300px; }
    .hero-dash-pills { justify-content: center; }
}
