﻿/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@300;400;500;600&display=swap');

:root {
    --bg: linear-gradient(to bottom, #151531, rgb(33, 53, 94)) ;
    /* --bg:linear-gradient(180deg, rgba(13, 0, 22, 1), rgba(43, 30, 55, 1)); */
    --surface: rgba(16, 24, 40, 0.72);
    --surface-solid: #121b2b;
    /* --card: rgba(255, 255, 255, 0.103); */
    /* linear-gradient(0deg, rgba(38, 102, 172, 1), rgba(5, 35, 99, 1)); */
    /* --card: linear-gradient(0deg, rgb(31, 97, 168), rgb(5, 32, 90)); */
    --card: linear-gradient(to top, rgb(75 142 183), rgb(24 41 72)) ;
    /* linear-gradient(to right, rgb(0, 82, 212), rgb(67, 100, 247), rgb(111, 177, 252)) */
    --card-border: rgba(148, 163, 184, 0.18);
    --text: #d6dbe4;
    --muted: #e0e0e0;
    --accent: #2dd4bf;
    --accent-2: #38bdf8;
    --glow: rgba(56, 189, 248, 0.28);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.18), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.18), transparent 40%),
                var(--bg);
}

a {
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.site-header {
    /* background: rgba(23, 31, 48, 0.1); */
    color: #fff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Banner */
.banner {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 7rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 15, 26, 0.95), rgba(10, 15, 26, 0.45));
}

.banner::after {
    content: '';
    position: absolute;
    inset: 10% 15%;
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(45, 212, 191, 0.12);
    pointer-events: none;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-transform: none;
}

.banner .subhead {
    font-size: 1.2rem;
    max-width: 860px;
    margin: 0 auto;
    color: var(--muted);
}

/* Sections */
section {
    padding: 4.5rem 0;
}

section:nth-child(even) {
    background: rgba(12, 19, 33, 0.4);
}

h1, h2, h3 {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    text-align: center;
}

.grid-3, .grid-2 {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--card);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.card:hover::after {
    opacity: 1;
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #f1f5f9;
}

.card p, .card li {
    color: var(--muted);
}

/* Pricing */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* 居中显示 */
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-grid > * {
    flex: 0 1 calc(33.333% - 2rem);  /* 每个项目约占1/3宽度 */
    min-width: 250px;  /* 可选：设置最小宽度 */
}

.pricing-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 18px;
    text-align: left;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pricing-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: left;
    color: #e2e8f0;
}

.price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent-2);
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.pricing-card ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--muted);
}

.custom-cluster {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 2rem;
    color: var(--muted);
}

/* Footer */
footer {
    background: #0b1220;
    color: #a0b8cc;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-content {
    display: grid;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.footer-contact {
    display: grid;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 1rem;
}

.footer-contact ul {
    list-style: none;
}
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--accent-2);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    color: #728196;
    font-size: 0.9rem;
}

/* Product page specifics */
.product-intro ul, .features-list ul {
    list-style: none;
}

.product-intro li, .features-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-intro li::before, .features-list li::before {
    content: "•";
    color: var(--accent-2);
    position: absolute;
    left: 0;
}

/* Solutions page */
.solution-item {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--surface-solid);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--shadow);
}

.solution-item img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.solution-item h2 {
    text-align: left;
    color: #e2e8f0;
    border-bottom: 2px solid rgba(56, 189, 248, 0.6);
    padding-bottom: 0.5rem;
}

.solution-item h3 {
    margin-top: 1.5rem;
    color: #cbd5f5;
}

/* Company */
.about ul {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.about li {
    margin-bottom: 1rem;
    color: var(--muted);
}

/* Utilities */
.section-lead {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .banner h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 900px) {
    .grid-3, .grid-2, .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 5rem 0 4rem;
    }
    .banner h1 {
        font-size: 2.2rem;
    }
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        margin-top: 0.6rem;
        justify-content: flex-start;
    }
    .footer-content {
        text-align: left;
    }
}

/* Blog */
.blog-hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: 1 1 280px;
    max-width: 360px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.blog-card h3 {
    margin: 0;
    padding: 1rem 1.2rem 1.4rem;
    color: #f1f5f9;
    font-size: 1.15rem;
    height: 150px;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1 1 280px;
    max-width: 360px;
}

.blog-card-link:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
    border-radius: 18px;
}

.blog-detail-hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.blog-detail-hero h1 {
    font-size: 2.4rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.blog-detail-hero .blog-meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.blog-detail-hero img {
    width: 80%;
    margin: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow);
}

.blog-detail-content {
    /* max-width: 860px; */
    margin: 0 auto;
    background: var(--surface);
    padding: 2.4rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow);
}

.blog-detail-content h2 {
    text-align: left;
    font-size: 1.6rem;
    margin-top: 2rem;
    color: #e2e8f0;
}

.blog-detail-content p {
    margin-top: 1rem;
    color: var(--muted);
}

.blog-detail-content ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--muted);
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    text-decoration: none;
    color: var(--accent-2);
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-detail-content {
        padding: 1.6rem;
    }

    .blog-detail-hero h1 {
        font-size: 2rem;
    }
}

.blog-cta {
    margin-top: 2rem;
    text-align: center;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    color: #0b1220;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.25);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .banner h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 900px) {
    .grid-3, .grid-2, .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 5rem 0 4rem;
    }
    .banner h1 {
        font-size: 2.2rem;
    }
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        margin-top: 0.6rem;
        justify-content: flex-start;
    }
    .footer-content {
        text-align: left;
    }
}


.banner {
    position: relative; /* 关键：让视频相对于这个区域定位 */
    width: 100%;
    height: 50vh; /* 或者你想要的任何高度，例如 min-height: 600px; */
    overflow: hidden; /* 防止视频超出边界 */
    background-color: #000; /* 视频加载前或加载失败时的后备颜色 */
}

/* 视频样式 */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%); /* 居中视频 */
    object-fit: cover; /* 确保视频覆盖整个容器，类似于background-size: cover */
    z-index: 0; /* 放在底层 */
}

/* 内容样式 */
.banner .container {
    position: relative; /* 建立层叠上下文 */
    z-index: 1; /* 放在视频上层 */
    color: white; /* 确保文字在深色背景下可见，可能需要根据视频调整 */
    text-align: center;
    /* 如果你想让内容垂直居中，可以添加flex布局 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* 可选：在视频和文字之间加一个半透明遮罩，让文字更易读 */
.video-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 深色半透明遮罩 */
    z-index: 0.5; /* 位于视频和文字之间 */
    pointer-events: none; /* 让鼠标事件穿透遮罩点击到按钮等元素 */
}

.media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeOutAfterVideo 6s forwards; /* 10s 是你的视频时长 */
}

.image-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeInAfterVideo 6s forwards;
}

@keyframes fadeOutAfterVideo {
    0%, 90% { opacity: 1; }    /* 视频播放期间保持显示 */
    100% { opacity: 0; }        /* 结束时淡出 */
}

@keyframes fadeInAfterVideo {
    0%, 90% { opacity: 0; }     /* 视频播放期间隐藏 */
    100% { opacity: 1; }         /* 结束时淡入 */
}


